A fast, keyboard-driven terminal UI for your database.
Think lazygit — but for Postgres, MySQL and SQLite.
- Browse tables and rows without leaving your terminal
- Run raw SQL queries with instant results
- Row counts per table shown in the sidebar
- Highlighted row navigation with keyboard
- Save and reuse database connections by name
- Works with Postgres, MySQL and SQLite
- Single binary — no runtime, no dependencies, no install friction
brew install HalxDocs/tap/lazydbgo install github.com/HalxDocs/lazydb@latestGrab the latest binary for your platform from the releases page.
# Postgres
lazydb --driver postgres --dsn "postgres://user:pass@localhost:5432/mydb?sslmode=disable"
# MySQL
lazydb --driver mysql --dsn "user:pass@tcp(localhost:3306)/mydb"
# SQLite
lazydb --driver sqlite --dsn ./mydb.sqlitelazydb --driver postgres --dsn "postgres://user:pass@localhost:5432/mydb?sslmode=disable" --save myapplazydb --conn myapplazydb| Key | Action |
|---|---|
↑ / k |
Move row up |
↓ / j |
Move row down |
← / h |
Previous table |
→ / l |
Next table |
/ |
Open query bar |
Enter |
Run query |
Esc |
Close query bar / dismiss error |
q |
Quit |
- Expand row detail view on
Enter - Edit and delete rows
- Export query results to CSV
- Multiple simultaneous connections
- Indexes and schema view
- MySQL and SQLite full testing
TablePlus costs money. DBeaver is slow Java bloat. pgAdmin is a browser app.
Developers who live in the terminal have had nothing polished — until now.
lazydb is the missing tool. Single binary. Zero config. Works over SSH.
It feels native because it is native.
Pull requests are welcome. For major changes please open an issue first.
git clone https://github.com/HalxDocs/lazydb.git
cd lazydb
go build ./...
go run main.go --driver sqlite --dsn ./test.sqliteMIT
