Relational NT
A relational database kernel shaped around NT-style object management.
Loading...
Searching...
No Matches
IStorageBackend.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <optional>
5#include <string>
6#include <vector>
7
17
18namespace nt {
32 public:
33 virtual ~IStorageBackend() = default;
34
41 virtual std::string Put(std::vector<uint8_t> value) = 0;
42
47 virtual std::optional<std::vector<uint8_t>> Get(const std::string& hash) = 0;
48 };
49} // namespace nt
Contract between CursorManager / Merkle and a physical storage engine.
Definition IStorageBackend.h:31
virtual std::optional< std::vector< uint8_t > > Get(const std::string &hash)=0
Retrieves bytes by their SHA256 hex hash.
virtual std::string Put(std::vector< uint8_t > value)=0
Stores a serialized value and returns its SHA256 hex hash.
Contains the Relational NT runtime managers and API facade.