internal

package
v0.0.0-...-790d661 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppliedMigration

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

type Migration

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

func (Migration) String

func (m Migration) String() string

type MigrationCollection

type MigrationCollection []Migration

func (MigrationCollection) Len

func (m MigrationCollection) Len() int

func (MigrationCollection) Less

func (m MigrationCollection) Less(i, j int) bool

func (MigrationCollection) Swap

func (m MigrationCollection) Swap(i, j int)

type Migrator

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

func NewMigrator

func NewMigrator(db *sql.DB, fs fs.FS, migrationPaths []string) (*Migrator, error)

func (*Migrator) Migrate

func (m *Migrator) Migrate() error

type SqlReader

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

func NewSqlReader

func NewSqlReader(rd io.Reader) *SqlReader

func (*SqlReader) ReadStatements

func (r *SqlReader) ReadStatements() ([]string, error)

Jump to

Keyboard shortcuts

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