pgdump

package
v0.0.0-...-9d6fbd1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dump

type Dump struct {
	// contains filtered or unexported fields
}

Dump is a struct to allow you te generate pg_dumps

func NewDump

func NewDump(host string, port int, username, password, database string) *Dump

NewDump gives a new dump setup for given DB credentials

func (*Dump) DumpToDisk

func (d *Dump) DumpToDisk(fileName string, options ...string) error

func (*Dump) RestoreFrom

func (d *Dump) RestoreFrom(fileName string, options ...string) error

Jump to

Keyboard shortcuts

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