pgutil

package
v0.8.32 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PgConsole

type PgConsole struct {
	Host     string
	Port     string
	User     string
	Password string
}

PgConsole to postgres

func (*PgConsole) Command

func (c *PgConsole) Command() *execkit.Command

Command to run postgres console

func (*PgConsole) Run

func (c *PgConsole) Run(ctx context.Context) error

Run postgres console

func (PgConsole) String

func (c PgConsole) String() string

type PgUtil

type PgUtil struct {
	Name         string
	Action       string
	Host         string
	Port         string
	User         string
	Password     string
	DBName       string
	MigrationSrc string
	SeedSrc      string
}

PgUtil command

func (*PgUtil) Command

func (c *PgUtil) Command() *execkit.Command

Command of pgUtil

func (PgUtil) Run

func (c PgUtil) Run(ctx context.Context) error

Run command

func (PgUtil) String

func (c PgUtil) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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