db

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMysqlConnection

func GetMysqlConnection(host, port, dbname, user, password string) *sql.DB

func GetPGConnection

func GetPGConnection(ctx context.Context, host, port, database, user, password string) *pgx.Conn

func GetPGPool

func GetPGPool(host, port, database, user, password string) *pgxpool.Pool

func GetSqliteConnection

func GetSqliteConnection(filepath string) *sql.DB

GetSqliteConnection returns a singleton database connection

func ResetPGConnection

func ResetPGConnection()

func ResetSqliteConnection

func ResetSqliteConnection()

ResetSqliteConnection resets the singleton database connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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