db

package
v0.4.2 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, 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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