Expand description
The libSQL auth database: credentials and their grants, never packages.
Queries stay plain SQL so that moving to remote Turso is only a --db-url change.
Constantsยง
- MIGRATION_
0001 ๐ - Idempotent (
IF NOT EXISTS), so it runs on every start.
Functionsยง
- local_
path ๐ file:./data/auth.dbโ./data/auth.db; a query string is left in place, not stripped.- open
- Opens
db_urland applies the migrations. - tune_
local ๐ - Waits up to 5 s for a lock and, outside
:memory:, switches to WAL, since an admintoken mintbeside live traffic otherwise fails SQLITE_BUSY as a 500. Remote libSQL manages its own storage and is never tuned.