dbrepo

package
v0.0.0-...-e91a5b0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DbDatabase = "DB_DATABASE"
View Source
var DbHost = "DB_HOST"
View Source
var DbPass = "DB_PASS"
View Source
var DbPort = "DB_PORT"
View Source
var DbUser = "DB_USER"
View Source
var GormDebugLogger logger.Interface
View Source
var GormLog bool
View Source
var GormLogMODE = "GORM_LOG_MODE"
View Source
var GormMaxIdleConn = "MAX_IDLE_CONN"
View Source
var GormMaxOpenConn = "MAX_OPEN_CONN"
View Source
var LogGormEnv = "LOG_GORM_ENV"

Functions

func NewPSQLConn

func NewPSQLConn() (db *psqlDB, err error)

Types

type DBConn

type DBConn interface {
	GetConn(context.Context) (*gorm.DB, error)
}

func NewDBConn

func NewDBConn() (DBConn, error)

Jump to

Keyboard shortcuts

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