Documentation
¶
Overview ¶
Package db opens the SQLite connection and owns the embedded migrations, which run at startup. It is the only place that knows where the database file lives or what pragmas it needs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Migrate ¶
Migrate brings the database to head, which since 2026-09-14 is one file: 001_initial, squashed through the old 018. No adoption shim, so any database at an older version starts again from empty. Safe because stackr has no install anywhere but the test rig; the chain starts growing again at 002 the day there is data that has to survive an upgrade.
func MigrateConfig ¶
func MigrateConfig() sqlite.MigrateConfig
MigrateConfig returns the migration configuration for this project.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.