db

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

func Migrate(conn *sqlx.DB) error

Migrate brings the database to head. 001_initial is one file, squashed through the old 018 on 2026-09-14, and frozen on 2026-09-18: the chain grows at 002 from here on, forward-only and additive, and migrate_guard_test.go enforces that. There is no adoption shim, so a database written before the squash starts again from empty; nothing but the test rig ever held one.

func MigrateConfig

func MigrateConfig() sqlite.MigrateConfig

MigrateConfig returns the migration configuration for this project.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL