Skip to content

SQLite

A path opens a SQLite file that exists:

Terminal window
usql books.db

To make a new file, name the scheme, such as sq::

Terminal window
usql sq:books.db
SchemeAliasesGo driverNotes
sqlite3sq, sqlitegithub.com/mattn/go-sqlite3The rest of the URL is a path, as in sqlite3:file. usql also opens its files from a path alone, and with file:. The driver needs cgo.
moderncsqlitemq, modernsqlitemodernc.org/sqliteThe rest of the URL is a path, as in moderncsqlite:file.