MCPcopy Create free account
hub / github.com/perkeep/perkeep / Wipe

Method Wipe

pkg/sorted/sqlkv/sqlkv.go:236–243  ·  view source on GitHub ↗

TODO(mpl): implement Wipe for each of the SQLs, as it's done for MySQL, and remove this one below.

()

Source from the content-addressed store, hash-verified

234// remove this one below.
235
236func (kv *KeyValue) Wipe() error {
237 if kv.Gate != nil {
238 kv.Gate.Start()
239 defer kv.Gate.Done()
240 }
241 _, err := kv.DB.Exec(kv.sql("DELETE FROM /*TPRE*/rows"))
242 return err
243}
244
245func (kv *KeyValue) Close() error { return kv.DB.Close() }
246

Callers

nothing calls this directly

Implementers 6

memKeyspkg/sorted/mem.go
kvispkg/sorted/kvfile/kvfile.go
keyValuepkg/sorted/mongo/mongokv.go
KeyValuepkg/sorted/buffer/buffer.go
KeyValuepkg/sorted/sqlkv/sqlkv.go
kvispkg/sorted/leveldb/leveldb.go

Calls 2

sqlMethod · 0.95
StartMethod · 0.65

Tested by

no test coverage detected