mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
fcdd5de47d
This reverts commit fcabe8b888
.
29 lines
540 B
C++
29 lines
540 B
C++
#pragma once
|
|
|
|
#include <Storages/ColumnDefault.h>
|
|
#include <Core/NamesAndTypes.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
|
|
template <bool store>
|
|
struct ColumnsDescription
|
|
{
|
|
template <typename T>
|
|
using by_value_or_cref = std::conditional_t<store, T, const T &>;
|
|
|
|
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);
|
|
};
|
|
|
|
|
|
}
|