userver: userver/storages/clickhouse/io/columns/string_column.hpp Source File
Loading...
Searching...
No Matches
string_column.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/storages/clickhouse/io/columns/string_column.hpp
4/// @brief String column support
5/// @ingroup userver_clickhouse_types
6
7#include <string>
8
9#include <userver/storages/clickhouse/io/columns/column_includes.hpp>
10
11USERVER_NAMESPACE_BEGIN
12
13namespace storages::clickhouse::io::columns {
14
15/// @brief Represents ClickHouse String column
16class StringColumn final : public ClickhouseColumn<StringColumn> {
17public:
18 using cpp_type = std::string;
19 using container_type = std::vector<cpp_type>;
20
21 StringColumn(ColumnRef column);
22
23 static ColumnRef Serialize(const container_type& from);
24};
25
26} // namespace storages::clickhouse::io::columns
27
28USERVER_NAMESPACE_END