dbrepo

package
v0.0.0-...-0cd45ec Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresRepo

func NewPostgresRepo(conn *sql.DB, a *config.AppConfig) repository.DatabaseRepo

NewPostgresRepo instantiates new postgresDBRepo object based on specified DB connection and application config

func NewTestingRepo

func NewTestingRepo(a *config.AppConfig) repository.DatabaseRepo

NewTestingRepo initializes new testDBRepo object based on application config only. We do not need a DB itself for the purpose of unit testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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