Skip to content

初始化方法‐Oracle

Tuuz edited this page Oct 27, 2023 · 1 revision
var Database *gorose.Engin

func DbConfig() *gorose.Config {
	var conf gorose.Config
	conf.Driver = "oracle"
	conf.SetMaxIdleConns = 20
	conf.SetMaxOpenConns = 300
	conf.Prefix = ""
	conf.Dsn = dsn_local()
	return &conf
}