fix(conf): 数据库驱动不支持时返回明确提示
This commit is contained in:
1 parent
ddf28f59cf
commit
51fac83d15
1 file changed
+1
-1
@@ -22,6 +22,6 @@ func (db DatabaseConfig) Dsn() string {
|
|||||||
return fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable",
|
return fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable",
|
||||||
db.Host, db.Port, db.User, db.Password, db.Dbname)
|
db.Host, db.Port, db.User, db.Password, db.Dbname)
|
||||||
default:
|
default:
|
||||||
return ""
|
return fmt.Sprintf("数据库支持:postgresql/mysql,当前:%s", db.Driver)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user