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 (
|
|
"database/sql"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// GetDb 获取驱动
|
|
func (c *GormClient) GetDb() *gorm.DB {
|
|
return c.db
|
|
}
|
|
|
|
// GetSqlDb 获取驱动
|
|
func (c *GormClient) GetSqlDb() *sql.DB {
|
|
return c.sqlDd
|
|
}
|