MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Drop

Method Drop

sqlchain/adapter/storage/sqlite3.go:67–74  ·  view source on GitHub ↗

Drop implements the Storage abstraction interface.

(dbID string)

Source from the content-addressed store, hash-verified

65
66// Drop implements the Storage abstraction interface.
67func (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.
77func (s *SQLite3Storage) Query(dbID string, query string, args ...interface{}) (columns []string, types []string, result [][]interface{}, err error) {

Callers

nothing calls this directly

Calls 2

StatMethod · 0.80
RemoveMethod · 0.45

Tested by

no test coverage detected