sqlite-utils
A Python library and CLI for building and querying SQLite databases from files or pipelines.
Instead of One-off CSV loaders and scratch database scripts.
pgcli is an interactive PostgreSQL shell with SQL completion and syntax highlighting.
No votes yet. Tried it? Be the first to say.
One vote per person. No account needed.
pgcli suggests database objects and SQL keywords as you type. Completion uses the statement context, so suggestions can include columns from a table you have already named. The client also supports connection aliases, configurable prompts and a row-count threshold prompt.
Suggests SQL keywords and database objects based on the statement being entered.
Colours the SQL input as you type.
Reads aliases defined in the client configuration.
Can prompt when results cross a configured row threshold.
Can use one database connection for querying and completion.
The README uses Homebrew on macOS and also documents a Python package. Replace local_database with a database your local PostgreSQL connection can access.
brew install pgcli
pgcli local_databaseStart typing a query against a schema you know only partly. The client’s completion can suggest table names and then narrow column suggestions once there is enough context in the statement. Syntax highlighting and an editable prompt help when you are iterating on a query over several lines.
Connection aliases are handy when the same developer moves between several databases. A recognisable alias and prompt can make the current connection easier to spot. The client also exposes an option to use a single connection for sessions where the normal separate completion connection is inconvenient.
brew install pgcli
pgcli local_database Ships with PostgreSQL and is widely used for scripted administration.
Offers a graphical schema browser and supports multiple database engines.
Other tools that share topics with pgcli.
A Python library and CLI for building and querying SQLite databases from files or pipelines.
Instead of One-off CSV loaders and scratch database scripts.
Use LLMs from the command line and pipe anything into them.
Instead of Copy-pasting terminal output into a chat window
A SQL IDE in your terminal for DuckDB, SQLite, Postgres, MySQL and more.
Instead of psql and the sqlite3 shell for exploring data, or opening a heavy GUI like DBeaver for a quick look