userver: userver/storages/clickhouse/io/columns/column_wrapper.hpp Source File
Loading...
Searching...
No Matches
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, ColumnRef&& column, std::string_view name, size_t ind);
21
22size_t GetColumnSize(const ColumnRef& column);
23
24} // namespace storages::clickhouse::io::columns
25
26USERVER_NAMESPACE_END