Skip to content

About

Terminal TUI for designing database schemas with live visual feedback — create tables, add columns, and export SQL DDL, all from the command line. Inspired by LazyGit.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

LazyForge

pub package License

LazyForge is a terminal IDE (TUI) for SQL schema modeling with a keyboard-driven workflow, focused on editing speed, real-time visualization, and DDL export.

Official links

Project media

LazyForge — main icon

Main capabilities

  • Create, alter, and remove tables by command.
  • Define columns with types per database engine.
  • PK/FK relationships with graph visualization in the terminal.
  • Engine selection (postgres, mysql, sqlite).
  • Export schema to SQL DDL.
  • Command history and productivity shortcuts in the editor.

Installation (pub.dev)

dart pub global activate lazy_forge
# to execute
lazy_forge

Local run (development)

dart pub get
dart run bin/lazy_forge.dart

With hot reload:

dart --enable-vm-service bin/lazy_forge.dart

Main commands

  • create table <table> [--autoincrement]
  • delete table <table> / drop table <table>
  • add column <table> <column> <type> [as pk] [options(v1|v2)] [description(text)]
  • add columns <table> <col1 type [as pk] ...; col2 type ...>
  • add column <column> type <type> to <table> [as pk] [options(v1|v2)] [description(text)]
  • set pk <table> <column>
  • add fk <table> <column> references <ref_table> <ref_column>
  • rename table <old> to <new>
  • rename column <table> <old> to <new>
  • alter column <table> <column> type <new_type> [options(v1|v2)]
  • set database <postgres|mysql|sqlite>
  • show database
  • show types
  • show tables
  • export [file_name.sql]
  • history
  • help

Persistence and export

  • Projects are saved automatically under ./lazyforge_projects (current working directory).
  • Exported SQL files are written to the current directory.

Supported databases

  • PostgreSQL
  • MySQL
  • SQLite

License

MIT.

About

Terminal TUI for designing database schemas with live visual feedback — create tables, add columns, and export SQL DDL, all from the command line. Inspired by LazyGit.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages