Usql
usql: Open Source Command Line Interface for PostgreSQL
usql is an open source command line interface for PostgreSQL databases that allows users to connect and execute SQL queries. It provides features like auto-completion, syntax highlighting, and query history to improve the SQL workflow.
What is Usql?
usql is an open-source command line interface for PostgreSQL databases that provides an improved interactive workflow for executing SQL queries. It was created as an alternative to the default psql utility included with PostgreSQL.
Some of the key features of usql include:
- Auto-completion of SQL keywords, table and column names as you type
- Syntax highlighting for SQL statements
- Wrapping of long lines for improved readability
- Searchable command history
- Configurable readline-style keyboard shortcuts
- Support for piping queries between files/programs
- Automatic reconnects if the database connection is lost
By providing conveniences like auto-completion and syntax highlighting directly within the terminal, usql aims to make it easier to write, edit, and navigate SQL statements programmatically. It's designed to improve productivity and lower the barrier to entry when working with PostgreSQL databases via the command line interface.
As an open source tool, usql is freely available to download and allows developers to extend and customize it to fit their needs. It can be installed through Python's pip package manager and works across the major operating systems like Linux, macOS, and Windows.
Usql Features
Features
- Command line interface for PostgreSQL
- Auto-completion of SQL keywords and identifiers
- Syntax highlighting
- Query history
- Support for most PostgreSQL SQL syntax
- Connection management
- Output formatting options
Pricing
- Open Source
- Free
Pros
Cons
Official Links
Reviews & Ratings
Login to ReviewThe Best Usql Alternatives
View all usql alternatives with detailed comparison →
Top Development and Database Tools and other similar apps like Usql
HeidiSQL
Querious
Mycli
Pgcli