Files
cid/dao/dataengine/db.go
2026-05-15 10:28:17 +08:00

13 lines
326 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package dataengine
import (
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// Model 获取 dataEngine 数据库的 ModelGoFrame ORM
// 配置文件中 dataEngine 对应的实际数据库名是 dataengine
func Model(tableName string) *gdb.Model {
return g.DB("dataEngine").Model(tableName)
}