add back SetMaxConns for compitable and set @deprecated

This commit is contained in:
Lunny Xiao 2014-04-18 10:52:33 +08:00
parent 14ba638eb8
commit 0d9c1a02eb
1 changed files with 5 additions and 0 deletions

View File

@ -93,6 +93,11 @@ func (engine *Engine) SetMaxOpenConns(conns int) {
engine.db.SetMaxOpenConns(conns)
}
// @Deprecated
func (engine *Engine) SetMaxConns(conns int) {
engine.SetMaxOpenConns(conns)
}
// SetMaxIdleConns
func (engine *Engine) SetMaxIdleConns(conns int) {
engine.db.SetMaxIdleConns(conns)