MCPcopy
hub / github.com/dgraph-io/badger / SetEntry

Method SetEntry

batch.go:142–146  ·  view source on GitHub ↗

SetEntry is the equivalent of Txn.SetEntry.

(e *Entry)

Source from the content-addressed store, hash-verified

140
141// SetEntry is the equivalent of Txn.SetEntry.
142func (wb *WriteBatch) SetEntry(e *Entry) error {
143 wb.Lock()
144 defer wb.Unlock()
145 return wb.handleEntry(e)
146}
147
148// Set is equivalent of Txn.Set().
149func (wb *WriteBatch) Set(k, v []byte) error {

Callers 4

SetEntryAtMethod · 0.95
SetMethod · 0.95
DeleteAtMethod · 0.95
handleEntryMethod · 0.45

Calls 1

handleEntryMethod · 0.95

Tested by

no test coverage detected