db

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *gorm.DB

Functions

func InitMysql

func InitMysql(conf MysqlConf)

Types

type MysqlConf

type MysqlConf struct {
	DSN                string `json:"DSN" mapstructure:"DSN"`
	DSNRead            string `json:"DSNRead" mapstructure:"DSNRead"`
	MaxConnections     int    `json:"MaxConnections" mapstructure:"MaxConnection"`
	MaxIdleConnections int    `json:"MaxIdleConnections" mapstructure:"MaxIdleConnections"`
}

Jump to

Keyboard shortcuts

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