chore: 修改函数名
This commit is contained in:
parent
72aa931caa
commit
60ef4aa71f
@ -72,8 +72,8 @@ func InitDb(opt DbOption) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// 通过函数暴露句柄
|
// 拿到数据库操作的句柄
|
||||||
func GetDm() *DbMap {
|
func GetDbMap() *DbMap {
|
||||||
if dm == nil {
|
if dm == nil {
|
||||||
InitDb(DbOption{
|
InitDb(DbOption{
|
||||||
Type: "sqlite3",
|
Type: "sqlite3",
|
||||||
|
Loading…
Reference in New Issue
Block a user