Class RocksDbBackend

Nested Relationships

Nested Types

Class Documentation

class RocksDbBackend

Public Types

using config_type = RocksDbConfig

Public Functions

RocksDbBackend()
~RocksDbBackend()
RocksDbBackend(RocksDbBackend &&other) noexcept
RocksDbBackend &operator=(RocksDbBackend &&other) noexcept
RocksDbBackend(const RocksDbBackend&) = delete
RocksDbBackend &operator=(const RocksDbBackend&) = delete
common::Result<void> open(const config_type &cfg)
common::Result<void> close()
common::Result<bool> contains(std::string_view key) const
common::Result<Text> get_text(std::string_view key) const
common::Result<Bytes> get_bytes(std::string_view key) const
common::Result<void> put_text(std::string_view key, std::string_view value)
common::Result<void> put_bytes(std::string_view key, std::span<const std::byte> value)
common::Result<void> erase(std::string_view key)
common::Result<std::vector<Key>> list_keys(std::string_view prefix = {}) const

Public Static Functions

static common::Result<void> create(const config_type &cfg)
static common::Result<void> destroy(const config_type &cfg)
class Impl

Public Functions

inline ~Impl()
inline common::Result<void> open(const config_type &cfg)
inline common::Result<void> close()
inline common::Result<bool> contains(std::string_view key) const
inline common::Result<Text> get_text(std::string_view key) const
inline common::Result<Bytes> get_bytes(std::string_view key) const
inline common::Result<void> put_text(std::string_view key, std::string_view value)
inline common::Result<void> put_bytes(std::string_view key, std::span<const std::byte> value)
inline common::Result<void> erase(std::string_view key)
inline common::Result<std::vector<Key>> list_keys(std::string_view prefix) const
inline common::Status require_open() const
inline common::Status require_writable() const
inline common::Result<std::vector<char>> get_raw(std::string_view key) const