()
| 82 | } |
| 83 | |
| 84 | func (s *folderDB) DropAllIndexIDs() error { |
| 85 | s.updateLock.Lock() |
| 86 | defer s.updateLock.Unlock() |
| 87 | _, err := s.stmt(`DELETE FROM indexids`).Exec() |
| 88 | return wrap(err) |
| 89 | } |
| 90 | |
| 91 | func (s *folderDB) GetDeviceSequence(device protocol.DeviceID) (int64, error) { |
| 92 | var res sql.NullInt64 |