We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5543a44 commit c3baf72Copy full SHA for c3baf72
store.go
@@ -293,12 +293,14 @@ func (s *Store) Delete(schema Schema, record Record) error {
293
return ErrEmptyID
294
}
295
296
- _, err := s.builder.
297
- Delete(schema.Table()).
298
- Where(squirrel.Eq{
299
- schema.ID().String(): record.GetID(),
300
- }).
301
- Exec()
+ var query bytes.Buffer
+ query.WriteString("DELETE FROM ")
+ query.WriteString(schema.Table())
+ query.WriteString(" WHERE ")
+ query.WriteString(schema.ID().String())
+ query.WriteString("=$1")
302
+
303
+ _, err := s.proxy.Exec(query.String(), record.GetID())
304
return err
305
306
0 commit comments