MCPcopy Index your code
hub / github.com/perkeep/perkeep / Delete

Method Delete

pkg/sorted/sqlkv/sqlkv.go:224–231  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

222}
223
224func (kv *KeyValue) Delete(key string) error {
225 if kv.Gate != nil {
226 kv.Gate.Start()
227 defer kv.Gate.Done()
228 }
229 _, err := kv.DB.Exec(kv.sql("DELETE FROM /*TPRE*/rows WHERE k=?"), key)
230 return err
231}
232
233// TODO(mpl): implement Wipe for each of the SQLs, as it's done for MySQL, and
234// remove this one below.

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