Skip to content

usql

One command line for PostgreSQL, MySQL, SQLite, SQL Server, Oracle, DuckDB and many other databases. It works like psql.
A first session: open a SQLite file, list its tables, and run a query.

usql opens a database from a URL, such as pg://user@host/db or my://localhost/db, or from a file on disk. The prompt takes SQL and psql’s backslash commands, such as \d, \copy, \set and \pset. It also has commands that psql does not have: \copy between two databases, \dump, and \chart, which draws a chart in the terminal.