drivers

package
v0.0.0-...-4e22d16 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GORMConfig

type GORMConfig struct {
	DriverName     string
	DataSourceName string
	MaxOpenConns   int
	MaxIdleConns   int
	MaxLifetime    time.Duration
}

GORMConfig holds the configuration for the GORM database instance

func (*GORMConfig) InitializeGORMDatabase

func (config *GORMConfig) InitializeGORMDatabase() (*gorm.DB, error)

InitializeGORMDatabase returns a new GORM DB instance

Jump to

Keyboard shortcuts

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