postgres

package
v0.0.0-...-e991ac3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 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)

func (*PostgresDatabase) TableNames

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

func (*PostgresDatabase) Views

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

Jump to

Keyboard shortcuts

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