mydb

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

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

Go to latest
Published: Jan 3, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*pgx.ConnPool
}

func Open

func Open(config pgx.ConnConfig) (*DB, error)

func OpenRoot

func OpenRoot(config pgx.ConnConfig) (*DB, error)

type TestDB

type TestDB struct {
	DB *DB
	T  testing.TB
}
var SharedTestDB *TestDB

func NewTestDB

func NewTestDB(t testing.TB) *TestDB

func (*TestDB) Close

func (db *TestDB) Close()

func (*TestDB) Empty

func (db *TestDB) Empty() error

Jump to

Keyboard shortcuts

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