# xo/usql

Universal command-line interface for SQL databases

Repository: https://github.com/xo/usql
Canonical: https://ross.abutalabs.com/products/usql
Language: Go
License: MIT
License Family: permissive
Topics: sql, postgresql, mysql, sqlite3, command-line, microsoft-sql-server, oracle-database, database, golang, mariadb, go, postgres, sqlite, oracle
Last push: 2026-06-19T14:42:20+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 88, release rhythm 76, longevity 100
- inputs: {"age_days": 3471, "days_push": 75, "days_rel": 160, "gap_med": 6.0, "n_releases_24m": 29}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10088, forks 402 (observed 2026-08-28T04:10:39.517926+00:00)

## What it is
usql is a universal command-line interface for SQL and NoSQL databases, written in Go and inspired by PostgreSQL's psql. It supports many database backends with psql-style features like backslash commands, variables, syntax highlighting, and cross-database copying.

## Use cases
- query postgres, mysql, and sqlite from one cli
- psql-like client for sql server or oracle
- copy data between different databases
- run sql against nosql databases from terminal
- replace vendor-specific database cli tools
- interactive sql shell with syntax highlighting and completion

## When to choose
- you work with multiple database engines and want one consistent cli
- you like psql's workflow but use non-postgresql databases
- you need to copy data between heterogeneous databases

## When to avoid
- you only use one database and its native client suffices
- you need a GUI database client
- you need advanced vendor-specific admin features

## Facets
- artifact type: cli-tool
- maturity: active
- function: database, database-driver, cli
- domain: databases, developer-tools
- platform: windows, cli, cross-platform, go
- tags: sql-client, psql-inspired, multi-database, nosql, syntax-highlighting, command-line, linux, macos

## Member repositories
- xo/usql (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:39.517926+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:19:44.835696+00:00, confidence not recorded.
  - readme: https://github.com/xo/usql (fetched 2026-08-28T04:10:39.517926+00:00, sha e530288ef96c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
