Iterator() returns a new iterator for merged iteration of both the in-memory operations and parent store with the given prefix
(prefix []byte)
| 158 | |
| 159 | // Iterator() returns a new iterator for merged iteration of both the in-memory operations and parent store with the given prefix |
| 160 | func (t *Txn) Iterator(prefix []byte) (lib.IteratorI, lib.ErrorI) { |
| 161 | it, err := t.reader.NewIterator(lib.Append(t.prefix, prefix), false, t.seek) |
| 162 | if err != nil { |
| 163 | return nil, err |
| 164 | } |
| 165 | return newTxnIterator(it, t.txn.copy(), prefix, t.prefix, false), nil |
| 166 | } |
| 167 | |
| 168 | // RevIterator() returns a new reverse iterator for merged iteration of both the in-memory operations and parent store with the given prefix |
| 169 | func (t *Txn) RevIterator(prefix []byte) (lib.IteratorI, lib.ErrorI) { |
nothing calls this directly
no test coverage detected