database_sql

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDB added in v0.4.0

func CreateDB(t *testing.T, dbName string, superUserConfig postgres.Config) (*sql.DB, error)

func MustConnect

func MustConnect(config postgres.Config) *sql.DB

MustConnect mimics sqlx MustConnect, but for sql.DB, using Config Opens connection to a DB, pings, and panics on error

func MustOpen

func MustOpen(config postgres.Config) *sql.DB

MustOpen mimics sqlx MustOpen, but for sql.DB, using Config Opens connection to a DB and panics on error

func TearDownDB added in v0.4.0

func TearDownDB(t *testing.T, db *sql.DB, superUserConfig postgres.Config) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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