Drop drops the snapshots table.
()
| 191 | |
| 192 | // Drop drops the snapshots table. |
| 193 | func (s *SQLRepository) Drop() error { |
| 194 | _, err := s.db.Exec(s.dialect.DropTable()) |
| 195 | if err != nil { |
| 196 | return fmt.Errorf("unable to drop repository: %w", err) |
| 197 | } |
| 198 | |
| 199 | return nil |
| 200 | } |