migrator

package
v0.0.0-...-69e7fd1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func NewLogger

func NewLogger(log *slog.Logger) *Logger

func (*Logger) Fatalf

func (l *Logger) Fatalf(format string, v ...interface{})

func (*Logger) Printf

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

type Migrator

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

func New

func New(db *sql.DB, dialect string, log *slog.Logger) (*Migrator, error)

func (*Migrator) MigrateDown

func (m *Migrator) MigrateDown(ctx context.Context) error

func (*Migrator) MigrateUp

func (m *Migrator) MigrateUp(ctx context.Context) error

Jump to

Keyboard shortcuts

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