ArchiveIterator() creates a new iterator for all versions under the given prefix in the BadgerDB transaction
(prefix []byte)
| 176 | |
| 177 | // ArchiveIterator() creates a new iterator for all versions under the given prefix in the BadgerDB transaction |
| 178 | func (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 |
| 183 | func (t *Txn) Discard() { |
nothing calls this directly
no test coverage detected