MCPcopy
hub / github.com/canopy-network/canopy / ArchiveIterator

Method ArchiveIterator

store/txn.go:178–180  ·  view source on GitHub ↗

ArchiveIterator() creates a new iterator for all versions under the given prefix in the BadgerDB transaction

(prefix []byte)

Source from the content-addressed store, hash-verified

176
177// ArchiveIterator() creates a new iterator for all versions under the given prefix in the BadgerDB transaction
178func (t *Txn) ArchiveIterator(prefix []byte) (lib.IteratorI, lib.ErrorI) {
179 return t.reader.NewIterator(lib.Append(t.prefix, prefix), false, t.seek)
180}
181
182// Discard() clears all in-memory operations and resets the sorted key list
183func (t *Txn) Discard() {

Callers

nothing calls this directly

Calls 2

AppendFunction · 0.92
NewIteratorMethod · 0.65

Tested by

no test coverage detected