pg

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: MIT Imports: 13 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 Command

type Command struct {
	ConfigFn     func() (*infra.PostgresCfg, error)
	DockerName   string
	MigrationSrc string
	SeedSrc      string
	// contains filtered or unexported fields
}

Command for postgres

func (*Command) Command

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

Command for postgress

func (*Command) Console added in v0.9.1

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

Console interactice for postgres

func (*Command) CreateDB added in v0.9.1

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

CreateDB create database

func (*Command) DropDB added in v0.9.1

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

DropDB delete database

func (*Command) MigrateDB added in v0.9.1

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

MigrateDB migrate database

func (*Command) RollbackDB added in v0.9.1

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

RollbackDB rollback database

func (*Command) SeedDB added in v0.9.1

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