dbmate

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterMigrationsByAppliedStatus

func FilterMigrationsByAppliedStatus(migrations []dbm.Migration, appliedStatus bool) []dbm.Migration

func ParseMigrations

func ParseMigrations(migrations []dbm.Migration) ([]types.ParsedMigration, error)

func SearchDirectoryForMigrations

func SearchDirectoryForMigrations(directory string) ([]dbm.Migration, error)

func SetRelativeFilePathOnParsedMigrations

func SetRelativeFilePathOnParsedMigrations(migrations []types.ParsedMigration, migrationsDir string) []types.ParsedMigration

Types

type DbMateClient

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

func NewDbMateClient

func NewDbMateClient(ctx context.Context, opts DbMateClientOpts) (*DbMateClient, error)

func (*DbMateClient) SearchDatabaseForMigrations

func (m *DbMateClient) SearchDatabaseForMigrations() ([]dbm.Migration, error)

type DbMateClientOpts

type DbMateClientOpts struct {
	MigrationsDir string
	Dsn           string
}

Jump to

Keyboard shortcuts

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