Run SQL tests in memory

This commit is contained in:
Deluan
2020-01-13 09:06:11 -05:00
committed by Deluan Quintão
parent 87ca885b5e
commit 4b08df0725
6 changed files with 20 additions and 16 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ func (r *checkSumRepository) Get(id string) (string, error) {
func (r *checkSumRepository) SetData(newSums map[string]string) error {
err := WithTx(func(o orm.Ormer) error {
_, err := Db().Raw("delete from checksum").Exec()
_, err := Db().QueryTable(&Checksum{}).Filter("id__isnull", false).Delete()
if err != nil {
return err
}