pgtool

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 PgTool

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

PgTool for postgres

func (*PgTool) Cfg

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

Cfg ...

func (*PgTool) Command

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

Command for postgress

func (*PgTool) Console

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

Console interactice for postgres

func (*PgTool) CreateDB

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

CreateDB create database

func (*PgTool) DropDB

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

DropDB delete database

func (*PgTool) MigrateDB

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

MigrateDB migrate database

func (*PgTool) RollbackDB

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

RollbackDB rollback database

func (*PgTool) SeedDB

func (t *PgTool) 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