mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
29 lines
535 B
C++
29 lines
535 B
C++
#pragma once
|
|
|
|
#include <DB/Storages/ColumnDefault.h>
|
|
#include <DB/Core/NamesAndTypes.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
|
|
template <bool store>
|
|
struct ColumnsDescription
|
|
{
|
|
template <typename T>
|
|
using by_value_or_cref = typename std::conditional<store, T, const T &>::type;
|
|
|
|
by_value_or_cref<NamesAndTypesList> columns;
|
|
by_value_or_cref<NamesAndTypesList> materialized;
|
|
by_value_or_cref<NamesAndTypesList> alias;
|
|
by_value_or_cref<ColumnDefaults> defaults;
|
|
|
|
String toString() const;
|
|
|
|
static ColumnsDescription parse(const String & str);
|
|
};
|
|
|
|
|
|
}
|