postgres

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabase

func NewDatabase(config adapter.Config) (adapter.Database, error)

Types

type PostgresDatabase

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

func (*PostgresDatabase) Close

func (d *PostgresDatabase) Close() error

func (*PostgresDatabase) DB

func (d *PostgresDatabase) DB() *sql.DB

func (*PostgresDatabase) DumpTableDDL

func (d *PostgresDatabase) DumpTableDDL(table string) (string, error)

Due to PostgreSQL's limitation, depending on pb_dump(1) availability in client. Possibly it can be solved by constructing the complex query, but it would be hacky anyway.

func (*PostgresDatabase) TableNames

func (d *PostgresDatabase) TableNames() ([]string, error)

Jump to

Keyboard shortcuts

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