pgtool

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PgTool

type PgTool struct {
	Name         string
	Config       dbtool.Config
	DockerName   string
	MigrationSrc string
	SeedSrc      string
	// contains filtered or unexported fields
}

PgTool for postgres

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) MigrationFile added in v0.9.10

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

MigrationFile seed 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

func (*PgTool) Task added in v0.9.10

func (t *PgTool) Task() *typgo.Task

Task for postgres

Jump to

Keyboard shortcuts

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