executor

package
v0.0.0-...-738a8d1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMigrateExecutor

type IMigrateExecutor interface {
	Migrate(version int64) error
	Up() error
	Down() error
	Create(fileName string) error
	Close() error
}

func New

func New(source, database string) (IMigrateExecutor, error)

type MigrateExecutor

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

func (*MigrateExecutor) Close

func (m *MigrateExecutor) Close() error

func (*MigrateExecutor) Create

func (m *MigrateExecutor) Create(fileName string) error

func (*MigrateExecutor) Down

func (m *MigrateExecutor) Down() error

func (*MigrateExecutor) Migrate

func (m *MigrateExecutor) Migrate(version int64) error

func (*MigrateExecutor) Up

func (m *MigrateExecutor) Up() error

Jump to

Keyboard shortcuts

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