13 : i_{std::move(it)} {}
36 return outcome::success();
outcome::result< void > next() override
Make step forward.
outcome::result< bool > seekLast() override
Same as std::rbegin(...);, e.g. points to the last valid element.
outcome::result< bool > seek(const BufferView &key) override
rocksdb::Slice make_slice(const common::BufferView &buf)
common::Buffer make_buffer(const rocksdb::Slice &s)
std::optional< Buffer > value() const override
Getter for value of the element currently pointed at.
outcome::result< bool > seekFirst() override
Same as std::begin(...);.
bool isValid() const override
Is the cursor in a valid state?
std::shared_ptr< rocksdb::Iterator > i_
std::optional< Buffer > key() const override
Getter for the key of the element currently pointed at.
RocksDBCursor(std::shared_ptr< rocksdb::Iterator > it)