migrate

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Printf(format string, args ...any)
}

type Migrator

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

func New

func New(migrationsPath string, opts ...Option) (*Migrator, error)

func (*Migrator) Migrate

func (m *Migrator) Migrate(db *sql.DB) (err error)

type Option

type Option func(*Options)

func WithLogger

func WithLogger(lgr Logger) Option

type Options

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

Jump to

Keyboard shortcuts

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