migrations

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Migrations = migrate.NewMigrations()

A collection of migrations.

Functions

This section is empty.

Types

type Migrator

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

func NewMigrator

func NewMigrator(m *migrate.Migrator) *Migrator

func (*Migrator) CreateGoMigration

func (m *Migrator) CreateGoMigration(ctx context.Context, name string) error

func (*Migrator) CreateSQLMigrations

func (m *Migrator) CreateSQLMigrations(ctx context.Context, name string) error

func (*Migrator) Init

func (m *Migrator) Init(ctx context.Context) error

func (*Migrator) Lock

func (m *Migrator) Lock(ctx context.Context) error

func (*Migrator) MarkApplied

func (m *Migrator) MarkApplied(ctx context.Context) error

func (*Migrator) Migrate

func (m *Migrator) Migrate(ctx context.Context) error

func (*Migrator) Rollback

func (m *Migrator) Rollback(ctx context.Context) error

func (*Migrator) Status

func (m *Migrator) Status(ctx context.Context) error

func (*Migrator) Unlock

func (m *Migrator) Unlock(ctx context.Context) error

Jump to

Keyboard shortcuts

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