sqldbtest

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(t *testing.T) (*sqldb.DB, func())

NewDB provides a sqldb.DB struct initialized with a sql.DB and cleanup function for testing. The following environment variables must be set to connect to the DB.

DB Host        = DB_HOST
DB Port        = DB_PORT
DB Name        = DB_NAME
DB User        = DB_USER
DB Password    = DB_PASSWORD
DB Search Path = DB_SEARCH_PATH

Types

This section is empty.

Jump to

Keyboard shortcuts

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