dbmigrate

package module
v0.0.0-...-790d661 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: MIT Imports: 4 Imported by: 0

README

go-dbmigrate

Database migrator written in go

License

Copyright (c) 2022 by Cornelius Buschka.

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *sql.DB) error

Types

type Migrator

type Migrator interface {
	Migrate() error
}

func NewMigrator

func NewMigrator(config *MigratorConfig) (Migrator, error)

type MigratorConfig

type MigratorConfig struct {
	Fs             fs.FS
	Db             *sql.DB
	MigrationPaths []string
}

func NewDefaultMigratorConfig

func NewDefaultMigratorConfig() *MigratorConfig

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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