mysqltool

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Stdout io.Writer = os.Stdout

Stdout standard output

Functions

This section is empty.

Types

type MySQLTool

type MySQLTool struct {
	Name         string
	ConfigFn     func() dbtool.Configurer
	DockerName   string
	MigrationSrc string
	SeedSrc      string
	// contains filtered or unexported fields
}

MySQLTool for postgres

func (*MySQLTool) Cfg

func (t *MySQLTool) Cfg() *dbtool.Config

Cfg ...

func (*MySQLTool) Command

func (t *MySQLTool) Command(sys *typgo.BuildSys) *cli.Command

Command for postgress

func (*MySQLTool) Console

func (t *MySQLTool) Console(c *typgo.Context) error

Console interactice for postgres

func (*MySQLTool) CreateDB

func (t *MySQLTool) CreateDB(c *typgo.Context) error

CreateDB create database

func (*MySQLTool) DropDB

func (t *MySQLTool) DropDB(c *typgo.Context) error

DropDB delete database

func (*MySQLTool) MigrateDB

func (t *MySQLTool) MigrateDB(c *typgo.Context) error

MigrateDB migrate database

func (*MySQLTool) RollbackDB

func (t *MySQLTool) RollbackDB(c *typgo.Context) error

RollbackDB rollback database

func (*MySQLTool) SeedDB

func (t *MySQLTool) SeedDB(c *typgo.Context) error

SeedDB seed database

Jump to

Keyboard shortcuts

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