MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / Delete

Method Delete

lib/wal/wal_db.go:35–45  ·  view source on GitHub ↗
(key []byte)

Source from the content-addressed store, hash-verified

33}
34
35func (w *Wal) Delete(key []byte) error {
36 marshal, err := json.Marshal(&WriteMessage{
37 Key: key,
38 Type: 2,
39 Value: nil,
40 })
41 if err != nil {
42 return err
43 }
44 return w.Write(marshal)
45}
46
47func (w *Wal) Update(key []byte, value []byte) error {
48 marshal, err := json.Marshal(&WriteMessage{

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.95

Tested by

no test coverage detected