migration

package
v0.0.0-...-96b04c8 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrate

type Migrate struct {
	Mysql  *migrations.Mysql
	Source *migrations.SourceDriver
}

func New

func New(sourceUrl, databaseUrl string) (*Migrate, error)

func (*Migrate) Close

func (m *Migrate) Close()

func (*Migrate) Exec

func (m *Migrate) Exec(migration migrations.Migration) error

func (*Migrate) Run

func (m *Migrate) Run() error

func (*Migrate) Version

func (m *Migrate) Version() (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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