Skip to content

Commit

Permalink
处理完毕关闭数据表
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Jan 18, 2022
1 parent 1aba1e7 commit b9b6a52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions importer/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func ProcessRun(process *gou.Process) interface{} {
imp := Select(name)
filename := process.ArgsString(1)
src := Open(filename)
defer src.Close()
mapping := anyToMapping(process.Args[2])
return imp.Run(src, mapping)
}
Expand All @@ -36,6 +37,7 @@ func ProcessData(process *gou.Process) interface{} {

filename := process.ArgsString(1)
src := Open(filename)
defer src.Close()

page := process.ArgsInt(2)
size := process.ArgsInt(3)
Expand All @@ -62,6 +64,7 @@ func ProcessMapping(process *gou.Process) interface{} {

filename := process.ArgsString(1)
src := Open(filename)
defer src.Close()
return imp.MappingPreview(src)
}

Expand All @@ -74,6 +77,7 @@ func ProcessMappingSetting(process *gou.Process) interface{} {

filename := process.ArgsString(1)
src := Open(filename)
defer src.Close()
return imp.MappingSetting(src)
}

Expand Down

0 comments on commit b9b6a52

Please sign in to comment.