6 #ifndef KAGOME_ROCKSDB_BATCH_HPP 7 #define KAGOME_ROCKSDB_BATCH_HPP 9 #include <rocksdb/write_batch.h> 16 ~Batch()
override =
default;
20 outcome::result<void>
commit()
override;
22 void clear()
override;
25 const Buffer &value)
override;
29 outcome::result<void>
remove(
const BufferView &key)
override;
37 #endif // KAGOME_ROCKSDB_BATCH_HPP Class represents arbitrary (including empty) byte buffer.
void clear() override
Clear batch.
~Batch() override=default
outcome::result< void > commit() override
Writes batch.
outcome::result< void > put(const BufferView &key, const Buffer &value) override
rocksdb::WriteBatch batch_