db

package
v0.0.0-...-a4de9da Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mysql *xorm.Engine
View Source
var MysqlGroup *xorm.EngineGroup

Functions

func InitEngineGroup

func InitEngineGroup(conf ...*MySQLConf) (err error)

func InitMySQL

func InitMySQL(cfg *MySQLConf) (err error)

Types

type MySQLConf

type MySQLConf struct {
	Host         string
	Port         uint16
	Db           string
	Username     string
	Password     string
	Charset      string
	Timeout      string
	ParseTime    bool
	Loc          string
	MaxIdleConns int
	MaxOpenConns int
}

Jump to

Keyboard shortcuts

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