Drop implements the Storage abstraction interface.
(dbID string)
| 65 | |
| 66 | // Drop implements the Storage abstraction interface. |
| 67 | func (s *SQLite3Storage) Drop(dbID string) (err error) { |
| 68 | dbFile := filepath.Join(s.rootDir, dbID+".db") |
| 69 | if _, err = os.Stat(dbFile); err != nil { |
| 70 | return |
| 71 | } |
| 72 | os.Remove(dbFile) |
| 73 | return |
| 74 | } |
| 75 | |
| 76 | // Query implements the Storage abstraction interface. |
| 77 | func (s *SQLite3Storage) Query(dbID string, query string, args ...interface{}) (columns []string, types []string, result [][]interface{}, err error) { |