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.
|
package dorm
|
|
|
|
import (
|
|
"gorm.io/gen"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// GetDb 获取驱动
|
|
func (c *GormGenClient) GetDb() *gorm.DB {
|
|
return c.db
|
|
}
|
|
|
|
// GetGenerator 获取驱动
|
|
func (c *GormGenClient) GetGenerator() *gen.Generator {
|
|
return c.generator
|
|
}
|