add sqlite

This commit is contained in:
noreply
2024-07-29 10:07:22 +08:00
parent 2cb9ed4393
commit 3d02b41dba
7 changed files with 67 additions and 6 deletions
+2
View File
@@ -14,6 +14,8 @@ func DBInit() {
dbType := viper.GetString("db_type")
if strings.EqualFold(dbType, "postgres") {
PostgreSQLInit()
} else if strings.EqualFold(dbType, "sqlite") {
SqliteInit()
} else {
MysqlInit()
}