All pens

sqlpen

A SQL client for PostgreSQL and SQLite: tables, an editor that knows SQL, rows in a grid.

Try it. Press Run. Double-click products for its rows. A column’s name sorts.Press Run. A column’s name sorts.

Theme bateri

What it does

The editor
Completes your tables and columns. ⌘ Enter runs the statement under the caret.
The grid
Ten thousand rows scroll like ten. Sort, copy, save as CSV.
Read only
Unless you run it with --write. A password is never shown.

Run it by its name

sqlpen --demo  # a small shop in SQLite, in memory
sqlpen app.db  # a SQLite file
sqlpen postgres://reader@db.example.com/shop  # a PostgreSQL database
sqlpen  # the one $DATABASE_URL names
Source on GitHub
Over plain ssh
Run it on the server. Nothing listens on a port.
Your font and theme
bateri draws it the way it draws its own text.
In another terminal
Says what it is connected to and lists the tables.

The other pens

Download bateri

Free and openly licensed. Open it and your zsh arrives as usual; bateri handles the rest.

Download for macOS

macOS 14 or later, Apple silicon · Free software, GPL-3.0

Or with Homebrew: