postgres

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage(conn *sql.DB, dumper PgDumper, timeout time.Duration) reader.Reader

NewStorage creates a new postgres storage reader.

Types

type PgDump

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

PgDump is responsible for executing the pg dump command.

func NewPgDump

func NewPgDump(dsn string) (*PgDump, error)

NewPgDump creates a new PgDump.

func (*PgDump) GetStructure

func (p *PgDump) GetStructure() (string, error)

GetStructure executes the pg dump command.

type PgDumper added in v0.0.9

type PgDumper interface {
	GetStructure() (stmt string, err error)
}

PgDumper executes the pg dump command.

Jump to

Keyboard shortcuts

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