mocks

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration struct {
}

func (*Migration) Add

func (app *Migration) Add(file string, env string, table string) error

func (*Migration) Delete

func (app *Migration) Delete(env string, table string, migrationID int) error

func (*Migration) Get

func (app *Migration) Get(env string, table string) (*mig.SQLMigrationStrategy, error)

func (*Migration) GetAll

func (app *Migration) GetAll(env string) ([]*mig.SQLMigrationStrategy, error)

func (*Migration) ListTables

func (app *Migration) ListTables(env string) ([]*mig.MigrationTable, error)

func (*Migration) Run

func (app *Migration) Run(driver string, connection string, env string, table string) error

func (*Migration) Set

func (app *Migration) Set(env string, table string, migrationID int) error

func (*Migration) Update

func (app *Migration) Update(env string, table string, migrationID int, timeStamp time.Time, timeStampNull bool) error

type Script

type Script struct {
}

func (*Script) Create

func (app *Script) Create(name string, file string, dir string) error

func (*Script) Get

func (app *Script) Get(name string) (string, error)

func (*Script) List

func (app *Script) List(project string) ([]*scr.FileList, error)

func (*Script) Register

func (app *Script) Register(file string) error

Jump to

Keyboard shortcuts

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