35 std::string
Put(std::vector<uint8_t> value)
override;
36 std::optional<std::vector<uint8_t>>
Get(
const std::string& hash)
override;
39 sqlite3* db_ =
nullptr;
Defines symbol visibility for the Relational NT public API.
Abstract KV storage backend consumed by CursorManager and Merkle.
Contract between CursorManager / Merkle and a physical storage engine.
Definition IStorageBackend.h:31
SqliteBackend(const std::string &path=":memory:")
Opens (or creates) a SQLite database at path.
Definition SqliteBackend.cpp:7
std::optional< std::vector< uint8_t > > Get(const std::string &hash) override
Retrieves bytes by their SHA256 hex hash.
Definition SqliteBackend.cpp:41
std::string Put(std::vector< uint8_t > value) override
Stores a serialized value and returns its SHA256 hex hash.
Definition SqliteBackend.cpp:28
Contains the Relational NT runtime managers and API facade.