Documentation ¶
Index ¶
- func GetMysqlConnection(host, port, dbname, user, password string) *sql.DB
- func GetPGConnection(ctx context.Context, host, port, database, user, password string) *pgx.Conn
- func GetPGPool(host, port, database, user, password string) *pgxpool.Pool
- func GetSqliteConnection(filepath string) *sql.DB
- func ResetPGConnection()
- func ResetSqliteConnection()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMysqlConnection ¶
func GetPGConnection ¶
func GetSqliteConnection ¶
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.
Click to show internal directories.
Click to hide internal directories.