datastoretest

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package datastoretest is for datastore helper functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB added in v0.23.0

func NewDB(t *testing.T, lgr zerolog.Logger) (*sql.DB, func())

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

DB Host     = PG_APP_HOST
Port        = PG_APP_PORT
DB Name     = PG_APP_DBNAME
DB User     = PG_APP_USERNAME
DB Password = PG_APP_PASSWORD

Types

This section is empty.

Jump to

Keyboard shortcuts

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