userver: userver/storages/clickhouse/io/columns/column_wrapper.hpp Source File
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
column_wrapper.hpp
1#pragma once
2
3#include <memory>
4#include <string_view>
5
6#include <userver/storages/clickhouse/impl/block_wrapper_fwd.hpp>
7
8namespace clickhouse {
9class Column;
10}
11
12USERVER_NAMESPACE_BEGIN
13
14namespace storages::clickhouse::io::columns {
15
16using ColumnRef = std::shared_ptr<::clickhouse::Column>;
17
18ColumnRef GetWrappedColumn(clickhouse::impl::BlockWrapper& block, size_t ind);
19
20void AppendWrappedColumn(clickhouse::impl::BlockWrapper& block,
21 ColumnRef&& column, std::string_view name, size_t ind);
22
23size_t GetColumnSize(const ColumnRef& column);
24
25} // namespace storages::clickhouse::io::columns
26
27USERVER_NAMESPACE_END