Using squirrel to generalize SQL search

This commit is contained in:
Deluan
2020-01-13 15:28:55 -05:00
committed by Deluan Quintão
parent d3af7e689d
commit c2448d3880
10 changed files with 134 additions and 34 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ func (r *checkSumRepository) SetData(newSums map[string]string) error {
cks := Checksum{ID: k, Sum: v}
checksums = append(checksums, cks)
}
_, err = Db().InsertMulti(100, &checksums)
_, err = Db().InsertMulti(batchSize, &checksums)
if err != nil {
return err
}