增加对sqlite数据库的支持 默认模式为mysql数据库

This commit is contained in:
QM303176530
2020-04-12 13:34:29 +08:00
parent 0ff3bdc64f
commit c6a8a47932
3 changed files with 11 additions and 9 deletions
+3 -1
View File
@@ -8,11 +8,13 @@ import (
)
func main() {
switch global.GVA_CONFIG.System.DbType {
switch global.GVA_CONFIG.System.DbType {
case "mysql":
initialize.Mysql()
case "sqlite":
initialize.Sqlite()
default:
initialize.Mysql()
}
initialize.DBTables()
// 程序结束前关闭数据库链接