migrations

package
v0.0.0-...-9d1d29a Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const RevisionLatest int64 = 0

RevisionLatest is the sentinel value meaning "migrate to the latest revision."

Variables

View Source
var EmbeddedMigrations embed.FS

Functions

func InitiateMigrations

func InitiateMigrations(db *sql.DB, mainCfg Config, fs fs.FS) error

Types

type Config

type Config struct {
	DBAddr string
	DBPort string

	EnableTLS             bool
	InsecureSkipTLSVerify bool
	UseHTTP               bool

	AllowMissing bool
	Revision     int64

	DBPassword string `json:"-"`
	DBUsername string
}

func (Config) String

func (c Config) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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