xorm/deprecated.go

16 lines
414 B
Go
Raw Normal View History

package xorm
// all content in this file will be removed from xorm some times after
// @deprecation : please use NewSession instead
func (engine *Engine) MakeSession() (Session, error) {
2013-06-16 03:05:16 +00:00
s := engine.NewSession()
return *s, nil
}
// @deprecation : please use NewEngine instead
func Create(driverName string, dataSourceName string) Engine {
2013-06-16 03:05:16 +00:00
engine, _ := NewEngine(driverName, dataSourceName)
return *engine
}