agterm-win 0.45.5 · cookbook

SQLite browser

Pick one of the repository's SQLite databases, newest first, and browse it in an overlay over the session.

In agterm-win · Set it up in WSL · On Windows · The recipe

In agterm-win

An agterm-server session in an Ubuntu distribution, in a fresh agterm-win with the Nordic Blue Dark theme.

The picker listing data/events.db and invoices.db
The picker shows the repository's databases with their size and age.
sqlite3 in an overlay showing the invoices table
The chosen database opens in an overlay, here with the sqlite3 shell.

Set it up in WSL

In the distribution, from a copy of the recipe's folder.

$ sudo apt install python3 sqlite3 zsh
$ mkdir -p ~/bin
$ cp sqlite-browser.py ~/bin/
$ chmod +x ~/bin/sqlite-browser.py

Then, from a shell in an agterm session:

$ cd ~/src/billing
$ SQLITE_VIEWER=sqlite3 SQLITE_VIEWER_ARGS=-box sqlite-browser.py

On Windows

  • The overlay runs its command with zsh -c, so the distribution needs zsh.
  • tabiew, the README's viewer, is not packaged for Ubuntu 24.04. SQLITE_VIEWER=sqlite3 with SQLITE_VIEWER_ARGS=-box works with what apt has.

The recipe, with how it works and its limits: cookbook/sqlite-browser.

← Project launcher · All recipes · FZF path picker →