ClickHouse/dbms/src/Storages/ColumnsDescription.h

29 lines
540 B
C++
Raw Normal View History

#pragma once
#include <Storages/ColumnDefault.h>
#include <Core/NamesAndTypes.h>
namespace DB
{
template <bool store>
struct ColumnsDescription
{
template <typename T>
2017-12-25 04:01:46 +00:00
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);
};
}