Decentralised Art Server
High-performance C++ backend that exposes HTML interface and a secure REST API for managing Performative Transactions entities
 
Loading...
Searching...
No Matches
dcn::storage::SQLiteRegistryStore Class Referencefinal

#include <sqlite_registry_store.hpp>

Inheritance diagram for dcn::storage::SQLiteRegistryStore:
dcn::storage::IRegistryStore

Public Member Functions

 SQLiteRegistryStore (const std::string &db_path)
 
 ~SQLiteRegistryStore () override
 
 SQLiteRegistryStore (const SQLiteRegistryStore &)=delete
 
SQLiteRegistryStoreoperator= (const SQLiteRegistryStore &)=delete
 
 SQLiteRegistryStore (SQLiteRegistryStore &&)=delete
 
SQLiteRegistryStoreoperator= (SQLiteRegistryStore &&)=delete
 
bool hasConnector (const std::string &name) const override
 
std::optional< ConnectorRecordHandlegetConnectorRecordHandle (const std::string &name) const override
 
std::optional< evmc::bytes32 > getConnectorFormatHash (const std::string &name) const override
 
bool addConnector (const chain::Address &address, const ConnectorRecord &record, const evmc::bytes32 &format_hash, const std::vector< ScalarLabel > &canonical_scalar_labels) override
 
bool addConnectorsBatch (const std::vector< ConnectorBatchItem > &items, bool all_or_nothing=true) override
 
std::size_t getFormatConnectorNamesCount (const evmc::bytes32 &format_hash) const override
 
NameCursorPage getFormatConnectorNamesCursor (const evmc::bytes32 &format_hash, const std::optional< NameCursor > &after, std::size_t limit) const override
 
std::optional< std::vector< ScalarLabel > > getScalarLabelsByFormatHash (const evmc::bytes32 &format_hash) const override
 
bool hasTransformation (const std::string &name) const override
 
std::optional< TransformationRecordHandlegetTransformationRecordHandle (const std::string &name) const override
 
bool addTransformation (const chain::Address &address, const TransformationRecord &record) override
 
bool addTransformationsBatch (const std::vector< TransformationBatchItem > &items, bool all_or_nothing=true) override
 
bool hasCondition (const std::string &name) const override
 
std::optional< ConditionRecordHandlegetConditionRecordHandle (const std::string &name) const override
 
bool addCondition (const chain::Address &address, const ConditionRecord &record) override
 
bool addConditionsBatch (const std::vector< ConditionBatchItem > &items, bool all_or_nothing=true) override
 
NameCursorPage getOwnedConnectorsCursor (const chain::Address &owner, const std::optional< NameCursor > &after, std::size_t limit) const override
 
NameCursorPage getOwnedTransformationsCursor (const chain::Address &owner, const std::optional< NameCursor > &after, std::size_t limit) const override
 
NameCursorPage getOwnedConditionsCursor (const chain::Address &owner, const std::optional< NameCursor > &after, std::size_t limit) const override
 
bool checkpointWal (WalCheckpointMode mode) const override
 
- Public Member Functions inherited from dcn::storage::IRegistryStore
virtual ~IRegistryStore ()=default
 

Constructor & Destructor Documentation

◆ SQLiteRegistryStore() [1/3]

dcn::storage::SQLiteRegistryStore::SQLiteRegistryStore ( const std::string &  db_path)
explicit

◆ ~SQLiteRegistryStore()

dcn::storage::SQLiteRegistryStore::~SQLiteRegistryStore ( )
override

◆ SQLiteRegistryStore() [2/3]

dcn::storage::SQLiteRegistryStore::SQLiteRegistryStore ( const SQLiteRegistryStore )
delete

◆ SQLiteRegistryStore() [3/3]

dcn::storage::SQLiteRegistryStore::SQLiteRegistryStore ( SQLiteRegistryStore &&  )
delete

Member Function Documentation

◆ addCondition()

bool dcn::storage::SQLiteRegistryStore::addCondition ( const chain::Address address,
const ConditionRecord &  record 
)
overridevirtual

◆ addConditionsBatch()

bool dcn::storage::SQLiteRegistryStore::addConditionsBatch ( const std::vector< ConditionBatchItem > &  items,
bool  all_or_nothing = true 
)
overridevirtual

◆ addConnector()

bool dcn::storage::SQLiteRegistryStore::addConnector ( const chain::Address address,
const ConnectorRecord &  record,
const evmc::bytes32 &  format_hash,
const std::vector< ScalarLabel > &  canonical_scalar_labels 
)
overridevirtual

◆ addConnectorsBatch()

bool dcn::storage::SQLiteRegistryStore::addConnectorsBatch ( const std::vector< ConnectorBatchItem > &  items,
bool  all_or_nothing = true 
)
overridevirtual

◆ addTransformation()

bool dcn::storage::SQLiteRegistryStore::addTransformation ( const chain::Address address,
const TransformationRecord &  record 
)
overridevirtual

◆ addTransformationsBatch()

bool dcn::storage::SQLiteRegistryStore::addTransformationsBatch ( const std::vector< TransformationBatchItem > &  items,
bool  all_or_nothing = true 
)
overridevirtual

◆ checkpointWal()

bool dcn::storage::SQLiteRegistryStore::checkpointWal ( WalCheckpointMode  mode) const
overridevirtual

◆ getConditionRecordHandle()

std::optional< ConditionRecordHandle > dcn::storage::SQLiteRegistryStore::getConditionRecordHandle ( const std::string &  name) const
overridevirtual

◆ getConnectorFormatHash()

std::optional< evmc::bytes32 > dcn::storage::SQLiteRegistryStore::getConnectorFormatHash ( const std::string &  name) const
overridevirtual

◆ getConnectorRecordHandle()

std::optional< ConnectorRecordHandle > dcn::storage::SQLiteRegistryStore::getConnectorRecordHandle ( const std::string &  name) const
overridevirtual

◆ getFormatConnectorNamesCount()

std::size_t dcn::storage::SQLiteRegistryStore::getFormatConnectorNamesCount ( const evmc::bytes32 &  format_hash) const
overridevirtual

◆ getFormatConnectorNamesCursor()

NameCursorPage dcn::storage::SQLiteRegistryStore::getFormatConnectorNamesCursor ( const evmc::bytes32 &  format_hash,
const std::optional< NameCursor > &  after,
std::size_t  limit 
) const
overridevirtual

◆ getOwnedConditionsCursor()

NameCursorPage dcn::storage::SQLiteRegistryStore::getOwnedConditionsCursor ( const chain::Address owner,
const std::optional< NameCursor > &  after,
std::size_t  limit 
) const
overridevirtual

◆ getOwnedConnectorsCursor()

NameCursorPage dcn::storage::SQLiteRegistryStore::getOwnedConnectorsCursor ( const chain::Address owner,
const std::optional< NameCursor > &  after,
std::size_t  limit 
) const
overridevirtual

◆ getOwnedTransformationsCursor()

NameCursorPage dcn::storage::SQLiteRegistryStore::getOwnedTransformationsCursor ( const chain::Address owner,
const std::optional< NameCursor > &  after,
std::size_t  limit 
) const
overridevirtual

◆ getScalarLabelsByFormatHash()

std::optional< std::vector< ScalarLabel > > dcn::storage::SQLiteRegistryStore::getScalarLabelsByFormatHash ( const evmc::bytes32 &  format_hash) const
overridevirtual

◆ getTransformationRecordHandle()

std::optional< TransformationRecordHandle > dcn::storage::SQLiteRegistryStore::getTransformationRecordHandle ( const std::string &  name) const
overridevirtual

◆ hasCondition()

bool dcn::storage::SQLiteRegistryStore::hasCondition ( const std::string &  name) const
overridevirtual

◆ hasConnector()

bool dcn::storage::SQLiteRegistryStore::hasConnector ( const std::string &  name) const
overridevirtual

◆ hasTransformation()

bool dcn::storage::SQLiteRegistryStore::hasTransformation ( const std::string &  name) const
overridevirtual

◆ operator=() [1/2]

SQLiteRegistryStore & dcn::storage::SQLiteRegistryStore::operator= ( const SQLiteRegistryStore )
delete

◆ operator=() [2/2]

SQLiteRegistryStore & dcn::storage::SQLiteRegistryStore::operator= ( SQLiteRegistryStore &&  )
delete

The documentation for this class was generated from the following files: