migrationsql

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 11 Imported by: 0

README

migrations-sql

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidMigrationDirection = errors.New("invalid migration direction")
)

Functions

func NewSourceSQLFromDir

func NewSourceSQLFromDir(fs fs.ReadDirFS, folder string) (migrations.Source, error)

Types

type DBExecer

type DBExecer interface {
	Exec(query string, args ...interface{}) (sql.Result, error)
}

type SourceWithAdd

type SourceWithAdd interface {
	migrations.Source
	Add(migration migrations.Migration) error
}

Directories

Path Synopsis
cli
internal
cmd

Jump to

Keyboard shortcuts

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