Documentation
¶
Overview ¶
Package db opens Peen's SQLite database, applies its embedded migrations, and wires the generated gorm/gen repositories. Business code uses the typed repository layer rather than a raw database handle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Directory string
InMemory bool
BusyTimeout time.Duration
Metrics *metrics.Metrics
}
Config identifies the private directory and SQLite connection behavior.
Click to show internal directories.
Click to hide internal directories.