Drop implements the Storage abstraction interface.
(dbID string)
| 54 | |
| 55 | // Drop implements the Storage abstraction interface. |
| 56 | func (s *CovenantSQLStorage) Drop(dbID string) (err error) { |
| 57 | cfg := client.NewConfig() |
| 58 | cfg.DatabaseID = dbID |
| 59 | _, err = client.Drop(cfg.FormatDSN()) |
| 60 | return |
| 61 | } |
| 62 | |
| 63 | // Query implements the Storage abstraction interface. |
| 64 | func (s *CovenantSQLStorage) Query(dbID string, query string, args ...interface{}) (columns []string, types []string, result [][]interface{}, err error) { |