db

package
v0.0.0-...-ba4ce30 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureDatabasePool

func ConfigureDatabasePool(pool DatabasePool, connection configs.ConnectionPool)

func ProvideDBConn

func ProvideDBConn(config *configs.DatabaseConfig) (*gorm.DB, error)

Types

type DatabasePool

type DatabasePool interface {
	SetMaxOpenConns(n int)
	SetConnMaxLifetime(d time.Duration)
	SetMaxIdleConns(n int)
	SetConnMaxIdleTime(d time.Duration)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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