add lost Prepare
This commit is contained in:
parent
a6cc098689
commit
3bb2fa9c85
|
@ -763,6 +763,13 @@ func (engine *Engine) OrderBy(order string) *Session {
|
||||||
return session.OrderBy(order)
|
return session.OrderBy(order)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prepare enables prepare statement
|
||||||
|
func (engine *Engine) Prepare() *Session {
|
||||||
|
session := engine.NewSession()
|
||||||
|
session.isAutoClose = true
|
||||||
|
return session.Prepare()
|
||||||
|
}
|
||||||
|
|
||||||
// Join the join_operator should be one of INNER, LEFT OUTER, CROSS etc - this will be prepended to JOIN
|
// Join the join_operator should be one of INNER, LEFT OUTER, CROSS etc - this will be prepended to JOIN
|
||||||
func (engine *Engine) Join(joinOperator string, tablename interface{}, condition string, args ...interface{}) *Session {
|
func (engine *Engine) Join(joinOperator string, tablename interface{}, condition string, args ...interface{}) *Session {
|
||||||
session := engine.NewSession()
|
session := engine.NewSession()
|
||||||
|
|
Loading…
Reference in New Issue