6 #ifndef IROHA_KV_STORAGE_HPP 7 #define IROHA_KV_STORAGE_HPP 9 #include <boost/optional.hpp> 26 using Bytes = std::vector<uint8_t>;
40 virtual boost::optional<Bytes>
get(
Identifier id)
const = 0;
45 virtual std::string
directory()
const = 0;
64 #endif // IROHA_KV_STORAGE_HPP uint32_t Identifier
Definition: key_value_storage.hpp:25
virtual ~KeyValueStorage()=default
virtual Identifier last_id() const =0
virtual bool add(Identifier id, const Bytes &blob)=0
std::vector< uint8_t > Bytes
Definition: key_value_storage.hpp:26
Definition: block_query.hpp:15
virtual std::string directory() const =0
Definition: key_value_storage.hpp:20