#include <registry.hpp>
Public Member Functions | |
| Registry ()=delete | |
| Registry (asio::io_context &io_context, std::string sqlite_path=":memory:") | |
| Registry (const Registry &)=delete | |
| Registry & | operator= (const Registry &)=delete |
| ~Registry ()=default | |
| asio::awaitable< bool > | add (chain::Address address, ConnectorRecord connector) |
| asio::awaitable< bool > | add (chain::Address address, TransformationRecord transformation) |
| asio::awaitable< bool > | add (chain::Address address, ConditionRecord condition) |
| asio::awaitable< bool > | addConnector (chain::Address address, ConnectorRecord connector) |
| asio::awaitable< bool > | addConnectorsBatch (std::vector< std::pair< chain::Address, ConnectorRecord > > connectors, bool all_or_nothing=true) |
| asio::awaitable< std::optional< ConnectorRecordHandle > > | getConnectorRecordHandle (const std::string &name) const |
| asio::awaitable< bool > | hasConnector (const std::string &name) const |
| asio::awaitable< std::optional< evmc::bytes32 > > | getFormatHash (const std::string &name) const |
| asio::awaitable< std::size_t > | getFormatConnectorNamesCount (const evmc::bytes32 &format_hash) const |
| asio::awaitable< NameCursorPage > | getFormatConnectorNamesCursor (const evmc::bytes32 &format_hash, const std::optional< NameCursor > &after, std::size_t limit) const |
| asio::awaitable< std::optional< std::vector< ScalarLabel > > > | getScalarLabelsByFormatHash (const evmc::bytes32 &format_hash) const |
| asio::awaitable< bool > | addTransformation (chain::Address address, TransformationRecord transformation) |
| asio::awaitable< bool > | addTransformationsBatch (std::vector< std::pair< chain::Address, TransformationRecord > > transformations, bool all_or_nothing=true) |
| asio::awaitable< std::optional< TransformationRecordHandle > > | getTransformationRecordHandle (const std::string &name) const |
| asio::awaitable< bool > | hasTransformation (const std::string &name) const |
| asio::awaitable< bool > | addCondition (chain::Address address, ConditionRecord condition) |
| asio::awaitable< bool > | addConditionsBatch (std::vector< std::pair< chain::Address, ConditionRecord > > conditions, bool all_or_nothing=true) |
| asio::awaitable< std::optional< ConditionRecordHandle > > | getConditionRecordHandle (const std::string &name) const |
| asio::awaitable< bool > | hasCondition (const std::string &name) const |
| asio::awaitable< NameCursorPage > | getOwnedConnectorsCursor (const chain::Address &owner, const std::optional< NameCursor > &after, std::size_t limit) const |
| asio::awaitable< NameCursorPage > | getOwnedTransformationsCursor (const chain::Address &owner, const std::optional< NameCursor > &after, std::size_t limit) const |
| asio::awaitable< NameCursorPage > | getOwnedConditionsCursor (const chain::Address &owner, const std::optional< NameCursor > &after, std::size_t limit) const |
| asio::awaitable< bool > | checkpointWal (WalCheckpointMode mode) const |
|
delete |
| dcn::storage::Registry::Registry | ( | asio::io_context & | io_context, |
| std::string | sqlite_path = ":memory:" |
||
| ) |
|
delete |
|
default |
| asio::awaitable< bool > dcn::storage::Registry::add | ( | chain::Address | address, |
| ConditionRecord | condition | ||
| ) |
| asio::awaitable< bool > dcn::storage::Registry::add | ( | chain::Address | address, |
| ConnectorRecord | connector | ||
| ) |
| asio::awaitable< bool > dcn::storage::Registry::add | ( | chain::Address | address, |
| TransformationRecord | transformation | ||
| ) |
| asio::awaitable< bool > dcn::storage::Registry::addCondition | ( | chain::Address | address, |
| ConditionRecord | condition | ||
| ) |
| asio::awaitable< bool > dcn::storage::Registry::addConditionsBatch | ( | std::vector< std::pair< chain::Address, ConditionRecord > > | conditions, |
| bool | all_or_nothing = true |
||
| ) |
| asio::awaitable< bool > dcn::storage::Registry::addConnector | ( | chain::Address | address, |
| ConnectorRecord | connector | ||
| ) |
| asio::awaitable< bool > dcn::storage::Registry::addConnectorsBatch | ( | std::vector< std::pair< chain::Address, ConnectorRecord > > | connectors, |
| bool | all_or_nothing = true |
||
| ) |
| asio::awaitable< bool > dcn::storage::Registry::addTransformation | ( | chain::Address | address, |
| TransformationRecord | transformation | ||
| ) |
| asio::awaitable< bool > dcn::storage::Registry::addTransformationsBatch | ( | std::vector< std::pair< chain::Address, TransformationRecord > > | transformations, |
| bool | all_or_nothing = true |
||
| ) |
| asio::awaitable< bool > dcn::storage::Registry::checkpointWal | ( | WalCheckpointMode | mode | ) | const |
| asio::awaitable< std::optional< ConditionRecordHandle > > dcn::storage::Registry::getConditionRecordHandle | ( | const std::string & | name | ) | const |
| asio::awaitable< std::optional< ConnectorRecordHandle > > dcn::storage::Registry::getConnectorRecordHandle | ( | const std::string & | name | ) | const |
| asio::awaitable< std::size_t > dcn::storage::Registry::getFormatConnectorNamesCount | ( | const evmc::bytes32 & | format_hash | ) | const |
| asio::awaitable< NameCursorPage > dcn::storage::Registry::getFormatConnectorNamesCursor | ( | const evmc::bytes32 & | format_hash, |
| const std::optional< NameCursor > & | after, | ||
| std::size_t | limit | ||
| ) | const |
| asio::awaitable< std::optional< evmc::bytes32 > > dcn::storage::Registry::getFormatHash | ( | const std::string & | name | ) | const |
| asio::awaitable< NameCursorPage > dcn::storage::Registry::getOwnedConditionsCursor | ( | const chain::Address & | owner, |
| const std::optional< NameCursor > & | after, | ||
| std::size_t | limit | ||
| ) | const |
| asio::awaitable< NameCursorPage > dcn::storage::Registry::getOwnedConnectorsCursor | ( | const chain::Address & | owner, |
| const std::optional< NameCursor > & | after, | ||
| std::size_t | limit | ||
| ) | const |
| asio::awaitable< NameCursorPage > dcn::storage::Registry::getOwnedTransformationsCursor | ( | const chain::Address & | owner, |
| const std::optional< NameCursor > & | after, | ||
| std::size_t | limit | ||
| ) | const |
| asio::awaitable< std::optional< std::vector< ScalarLabel > > > dcn::storage::Registry::getScalarLabelsByFormatHash | ( | const evmc::bytes32 & | format_hash | ) | const |
| asio::awaitable< std::optional< TransformationRecordHandle > > dcn::storage::Registry::getTransformationRecordHandle | ( | const std::string & | name | ) | const |
| asio::awaitable< bool > dcn::storage::Registry::hasCondition | ( | const std::string & | name | ) | const |
| asio::awaitable< bool > dcn::storage::Registry::hasConnector | ( | const std::string & | name | ) | const |
| asio::awaitable< bool > dcn::storage::Registry::hasTransformation | ( | const std::string & | name | ) | const |