database

package
v0.0.0-...-6b846f9 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicateEntry = errors.New("duplicate entry")
)

Functions

func MySQLConnection

func MySQLConnection() *dbr.Connection

MySQLConnection returns data singleton instance

func MySQLForTesting

func MySQLForTesting() (conn *dbr.Connection, err error)

MySQLForTesting simply returns a data mysqlConn

func PostgreSQLConnection

func PostgreSQLConnection(logger *zap.Logger) *pgx.Conn

PostgreSQLConnection returns data singleton instance

func PostgreSQLForTesting

func PostgreSQLForTesting(logger *zap.Logger) (conn *pgx.Conn)

PostgreSQLForTesting simply returns a data mysqlConn

Types

This section is empty.

Jump to

Keyboard shortcuts

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