mirror of
https://github.com/astaxie/beego.git
synced 2025-07-03 16:20:19 +00:00
orm now can specify engine for mysql. add api SetMaxIdleConns/SetMaxOpenConns(go 1.2)
This commit is contained in:
@ -223,4 +223,10 @@ go test -v github.com/astaxie/beego/orm
|
||||
}
|
||||
|
||||
RegisterDataBase("default", DBARGS.Driver, DBARGS.Source, 20)
|
||||
|
||||
alias := getDbAlias("default")
|
||||
if alias.Driver == DR_MySQL {
|
||||
alias.Engine = "INNODB"
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user