migrations

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateDatabase

func MigrateDatabase(ctx types.NodeContext, cfg *config.Postgres, steps int) error

MigrateDatabase executes the golang-migrations SQL files. steps allow selective migrations: 0: migrate all the way up, positive: migrate that many steps up, negative: migrate steps down

Types

type CustomFile added in v0.5.4

type CustomFile struct {
	io.ReadCloser
	// contains filtered or unexported fields
}

func (CustomFile) Stat added in v0.5.4

func (f CustomFile) Stat() (fs.FileInfo, error)

type EmbedFSWrapper added in v0.5.4

type EmbedFSWrapper struct {
	// contains filtered or unexported fields
}

func NewEmbedFSWrapper added in v0.5.4

func NewEmbedFSWrapper(efs embed.FS) EmbedFSWrapper

func (EmbedFSWrapper) Open added in v0.5.4

func (e EmbedFSWrapper) Open(name string) (fs.File, error)

Jump to

Keyboard shortcuts

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