2013-06-12 13:51:39 +00:00
|
|
|
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
|
2013-06-12 13:51:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// @deprecation : please use NewEngine instead
|
|
|
|
func Create(driverName string, dataSourceName string) Engine {
|
2013-06-16 03:05:16 +00:00
|
|
|
engine, _ := NewEngine(driverName, dataSourceName)
|
2013-06-12 13:51:39 +00:00
|
|
|
return *engine
|
|
|
|
}
|