Description
dblab is a fast, lightweight, terminal-based interface for databases. It works with PostgreSQL, MySQL and SQLite3, and the docs also mention Oracle and SQL Server. It is written in Go and distributed as a single binary with no dependencies, for macOS, Linux and Windows. The query editor is Vim-style, with normal and insert modes, word and line motions, undo and redo, visual selection and in-buffer search. You can run several SQL statements at once, with each result in its own tab, or run only the statement under the cursor. Connection profiles keep credentials in the operating system keyring. Executed queries are saved in a searchable history. A read-only flag blocks writes at the session level. You can switch the active schema from a list without restarting. Press question mark for a help overlay of key bindings. The project is open source on GitHub, and the documentation site includes installation with Homebrew or a binary, a quick start, usage and tutorials.…
Highlights
- Terminal UI for PostgreSQL, MySQL and SQLite
- Vim-style SQL editor
- Connection profiles in the OS keyring
- Query history and multi-query tabs
- Read-only mode
Ratings & Reviews
No ratings yet
Be the first to rate Dblab.
People also visit
Dblab FAQ
What is dblab?
A terminal database client for PostgreSQL, MySQL and SQLite3, written in Go.
How do I install it?
With Homebrew, by downloading a manual binary, or with the automated installer, as the docs describe.
Can it prevent accidental writes?
Yes. The --readonly flag forces the session into read-only mode, according to the README.
Where are my passwords stored?
In the operating system keyring, according to the feature list.
Is it free?
Yes. It is open source and the code is on GitHub.
What are the best Dblab alternatives?
Popular alternatives to Dblab include data-peek, Seaquel and TablePro. See all Dblab alternatives




