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

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