Files
mayfly-go/server/internal/db/dbm/dbi/meta.go
2024-01-12 13:15:30 +08:00

13 lines
282 B
Go
Raw 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 dbi
import "database/sql"
// 数据库元信息获取如获取sql.DB、Dialect等
type Meta interface {
// 获取数据库服务实例信息
GetSqlDb(*DbInfo) (*sql.DB, error)
// 获取数据库方言,用于获取表结构等信息
GetDialect(*DbConn) Dialect
}