migrator

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceFieldName = "migrator.source"

	SourceDefault = "file://./migrations"
)

Variables

This section is empty.

Functions

func NewMigrator

func NewMigrator(config *Config, dbConfig *db.Config, sqlDatabase goqu.SQLDatabase) (*migrate.Migrate, error)

func WithConfigurator

func WithConfigurator(configurator configurator.Configurator, config *Config, dbConfig *db.Config, db goqu.SQLDatabase) (*migrate.Migrate, error)

Types

type Config

type Config struct {
	Source string
}

func NewConfig

func NewConfig() *Config

Jump to

Keyboard shortcuts

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