Help us shape the future of Go! Take the 2026 Go Developer Survey

migrations

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package migrations embeds the SQL migration files so the control plane can apply them without the source tree present — a step toward a binaries-only `dexaflow lite` (no checked-out repo required). See issue #60.

Index

Constants

This section is empty.

Variables

View Source
var Files embed.FS

Files holds the embedded up/down migration SQL, loadable by golang-migrate's iofs source.

Functions

func Latest

func Latest() (uint, error)

Latest returns the highest migration version embedded in this binary. It is the binary's view of "newest schema I know about" — the drift detector in `dexaflow lite` (#136) compares it against the running database's schema_migrations.version to refuse to start when the DB is ahead. An empty embed (no .up.sql files) returns an error rather than 0 so a misconfigured build is loud.

Types

This section is empty.

Jump to

Keyboard shortcuts

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