migration

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogging

func NewLogging() migrate.Logger

func NewMigration

func NewMigration(db *sql.DB, resolver *driver.Resolver, props *Properties, logger migrate.Logger) (*migrate.Migrate, error)

Types

type Logging

type Logging struct {
}

func (Logging) Printf

func (l Logging) Printf(format string, v ...interface{})

func (Logging) Verbose

func (l Logging) Verbose() bool

type Properties

type Properties struct {
	Driver          string `validate:"required"`
	Database        string `validate:"required"`
	MigrationSource string `validate:"required" default:"file:///migrations"`
}

func NewProperties

func NewProperties(loader config.Loader) (*Properties, error)

func (Properties) Prefix

func (p Properties) Prefix() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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