Documentation
¶
Overview ¶
Package migrations embeds the SQL migration files used by goose to manage the sqi-server SQLite schema.
The embedded FS is passed to goose via [goose.SetBaseFS] so that migration files are included in the binary and do not need to be present on disk at runtime.
Migration files follow the goose naming convention:
<version>_<description>.sql
where <version> is a zero-padded integer and each file contains "-- +goose Up" and "-- +goose Down" sections.
The full schema lives in the numbered migration files; this package is wired up by the migrate subcommand so the CLI is operational from the start.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var FS = fsutil.HideAppleDouble(raw)
FS wraps the raw embed, hiding macOS AppleDouble companion files ("._x.sql") from goose. See internal/fsutil for why they appear and what they break.
Functions ¶
This section is empty.
Types ¶
This section is empty.