package
Version:
v0.3.3
Opens a new window with list of versions in this module.
Published: Feb 19, 2026
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package db provides SQLite-backed storage for nightshift state and snapshots.
CurrentVersion returns the current schema version (0 if no migrations applied).
DefaultPath returns the default database path.
Migrate runs all pending migrations inside transactions.
DB wraps the SQLite connection and path.
Open opens or creates the database, applies pragmas, and runs migrations.
Close closes the underlying database connection.
SQL returns the raw *sql.DB for advanced usage.
Migration represents a single schema change.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.