mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
fix: 机器文件下载问题修复&dbm重构
This commit is contained in:
12
server/internal/db/dbm/dbi/meta.go
Normal file
12
server/internal/db/dbm/dbi/meta.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package dbi
|
||||
|
||||
import "database/sql"
|
||||
|
||||
// 数据库元信息获取,如获取sql.DB、Dialect等
|
||||
type Meta interface {
|
||||
// 获取数据库服务实例信息
|
||||
GetSqlDb(*DbInfo) (*sql.DB, error)
|
||||
|
||||
// 获取数据库方言,用于获取表结构等信息
|
||||
GetDialect(*DbConn) Dialect
|
||||
}
|
||||
Reference in New Issue
Block a user