xo

usql

xo

A universal command-line interface for SQL databases, supporting PostgreSQL, MySQL, SQLite, Oracle, and many more.

v0.21.6
Published at
26d ago
10,135
Stars
57,369
Download
Synced at
15d ago

Latest release

v0.21.6Sep 22, 2026, 11:58 PM
Downloads slow? Switch the source anytime above

README

Project Overview

usql is a universal command-line interface for PostgreSQL, MySQL, Oracle Database, SQLite3, Microsoft SQL Server, and many other databases. It is inspired by PostgreSQL's psql.

Key Features

  • Supports many SQL and NoSQL databases
  • Core psql features (variables, backticks, backslash commands)
  • Copy between databases
  • Syntax highlighting
  • Context-based completion

Target Audience

  • Database administrators (DBAs)
  • Developers managing multiple databases
  • Users who like the psql-style tool

Quick Start

  1. Download from Releases
  2. Move the executable to $PATH
  3. Homebrew (macOS/Linux): brew install xo/xo/usql
  4. Run usql <database connection string> to connect

Core Advantages

  • Unified command-line interface for multiple databases
  • psql-style, familiar and easy to use
  • Syntax highlighting and context completion
  • Open-source and free

System Requirements

  • OS: Linux, macOS, Windows
  • Architectures: x86_64, arm64
  • Additional Dependencies: None

Notes

  • ODBC database support requires the --with-odbc install flag

Release history

Sort