chore: 修改函数名

This commit is contained in:
tiglog 2023-08-17 19:22:54 +08:00
parent 72aa931caa
commit 60ef4aa71f

View File

@ -72,8 +72,8 @@ func InitDb(opt DbOption) error {
return nil
}
// 通过函数暴露句柄
func GetDm() *DbMap {
// 拿到数据库操作的句柄
func GetDbMap() *DbMap {
if dm == nil {
InitDb(DbOption{
Type: "sqlite3",