sqlight

command module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 6 Imported by: 0

README

sqlight

A terminal UI for SQLite databases. Browse tables, run queries, and edit data — all from your terminal.

Built with Bubble Tea and modernc.org/sqlite (pure Go, no CGO required).

demo

Install

From release binaries

Download the latest binary from the releases page.

With Go
go install github.com/netomathias/sqlight@latest
Build from source
git clone https://github.com/netomathias/sqlight.git
cd sqlight
go build -o sqlight .

Usage

sqlight path/to/database.db

Open in read-only mode (prevents any writes):

sqlight --readonly path/to/database.db
sqlight -r path/to/database.db

Supported file extensions: .db, .sqlite, .sqlite3

Keyboard Shortcuts

Key Action
tab/shift+tab Switch pane
/ or j/k Navigate rows
/ or h/l Navigate columns
enter Select table
n/p Next/prev page
ctrl+e Toggle SQL editor
alt+enter/F5 Execute SQL query
e Edit cell
i Insert row
d Delete row
? Toggle help
q/ctrl+c Quit

Features

  • Table browser — sidebar lists all tables and views, with paginated data grid
  • SQL editor — write and execute arbitrary SQL queries
  • CRUD operations — edit cells, insert rows, delete rows with confirmation
  • Read-only mode — enforced at the SQLite level via ?mode=ro
  • Pure Go — single binary, no CGO, cross-platform

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
db
tui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL