feat: sqlite模式改为wal支持并发写入临时日志
This commit is contained in:
@@ -14,12 +14,12 @@ import (
|
||||
|
||||
// ImportSQL 导入SQL
|
||||
func ImportSQL() {
|
||||
sqlPath := config.Get("sqlPath").(string)
|
||||
if sqlPath == "" {
|
||||
sqlPath, sqlPathOk := config.Get("sqlPath").(string)
|
||||
if !sqlPathOk || sqlPath == "" {
|
||||
return
|
||||
}
|
||||
sqlSource := config.Get("sqlSource").(string)
|
||||
if sqlSource == "" {
|
||||
sqlSource, sqlSourceOk := config.Get("sqlSource").(string)
|
||||
if !sqlSourceOk || sqlSource == "" {
|
||||
sqlSource = config.Get("database.defaultDataSourceName").(string)
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@ func ImportSQL() {
|
||||
}
|
||||
|
||||
// log.Println("process success")
|
||||
Close()
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user