|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package dorm
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"xorm.io/builder"
|
|
|
|
|
"xorm.io/xorm"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@ -8,3 +9,7 @@ import (
|
|
|
|
|
func (c *XormClient) GetDb() *xorm.Engine {
|
|
|
|
|
return c.db
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *XormClient) GetBuilder(dialect string) *builder.Builder {
|
|
|
|
|
return builder.Dialect(dialect)
|
|
|
|
|
}
|
|
|
|
|