You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/utils/dorm/xorm_get.go

16 lines
245 B

package dorm
import (
"xorm.io/builder"
"xorm.io/xorm"
)
// GetDb 获取驱动
func (c *XormClient) GetDb() *xorm.Engine {
return c.db
}
func (c *XormClient) GetBuilder(dialect string) *builder.Builder {
return builder.Dialect(dialect)
}