#include <userver/storages/clickhouse/execution_result.hpp>
Thin wrapper over underlying block of data, returned by storages::clickhouse::Cluster Execute methods
Definition at line 32 of file execution_result.hpp.
Public Member Functions | |
| ExecutionResult (impl::BlockWrapperPtr) | |
| ExecutionResult (ExecutionResult &&) noexcept | |
| size_t | GetColumnsCount () const |
| Returns number of columns in underlying block. | |
| size_t | GetRowsCount () const |
| Returns number of rows in underlying block columns. | |
| template<typename T> | |
| T | As () && |
| template<typename T> | |
| auto | AsRows () && |
| template<typename Container> | |
| Container | AsContainer () && |
| T storages::clickhouse::ExecutionResult::As | ( | ) | && |
Converts underlying block to strongly-typed struct of vectors. See clickhouse_io for better understanding of T's requirements.
Definition at line 65 of file execution_result.hpp.
| Container storages::clickhouse::ExecutionResult::AsContainer | ( | ) | && |
Converts underlying block to strongly-typed container. See clickhouse_io for better understanding of Container::value_type's requirements.
Definition at line 89 of file execution_result.hpp.
| auto storages::clickhouse::ExecutionResult::AsRows | ( | ) | && |
Converts underlying block to iterable of strongly-typed struct. See clickhouse_io for better understanding of T's requirements.
Definition at line 80 of file execution_result.hpp.