Implement inserting FileLumiList in InsertFile for Issue #20. Also includes basic integration tests for /blocks and /files API.
Inserting FileLumiList is based on dbs/bulkblocks.go. As such, the logic in dbs/bulkblocks.go is moved to the function SelectFileLumiListInsert in dbs/filelumis.go.
Implement inserting FileLumiList in InsertFile for Issue #20. Also includes basic integration tests for
/blocks
and/files
API.Inserting FileLumiList is based on
dbs/bulkblocks.go
. As such, the logic indbs/bulkblocks.go
is moved to the functionSelectFileLumiListInsert
indbs/filelumis.go
.The type
RunLumi
was only used indbs/files.go
. This was also removed after replacing the type ofdbs.FileRecord.FILE_LUMI_LIST
todbs.FileLumi
: https://github.com/d-ylee/dbs2go/blob/a0fd6829ec283975820163e4c0cd96f56976bef5/dbs/files.go#L397.Some of Issue #7 was included in the integration test: https://github.com/d-ylee/dbs2go/blob/a0fd6829ec283975820163e4c0cd96f56976bef5/test/int_files.go#L254