fix(conf): 数据库驱动不支持时返回明确提示

This commit is contained in:
unclesam committed 2026-07-25 15:20:57 +08:00
1 parent ddf28f59cf
commit 51fac83d15
1 file changed
+1 -1
+1 -1
View File
@@ -22,6 +22,6 @@ func (db DatabaseConfig) Dsn() string {
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)
default:
return ""
return fmt.Sprintf("数据库支持:postgresql/mysql,当前:%s", db.Driver)
}
}