migration_state

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrationState

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

func New

func New(migrationDir string, storage storage.Storage) *MigrationState

func (*MigrationState) Add

func (*MigrationState) All

func (*MigrationState) Close

func (s *MigrationState) Close() error

func (*MigrationState) DropLatest

func (s *MigrationState) DropLatest() error

func (*MigrationState) Files

func (s *MigrationState) Files() ([]*migration.Migration, error)

Files returns the list of migration files identified on the disk in ascending order.

func (*MigrationState) Latest

func (s *MigrationState) Latest() (*migration.Migration, error)

Jump to

Keyboard shortcuts

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