ClickHouse/dbms/src/Storages/IndicesDescription.h
Nikita Vasilev 8d2b32fda8 clear index
2019-05-09 17:25:18 +03:00

25 lines
421 B
C++

#pragma once
#include <Parsers/ASTIndexDeclaration.h>
namespace DB
{
using IndicesASTs = std::vector<std::shared_ptr<ASTIndexDeclaration>>;
struct IndicesDescription
{
IndicesASTs indices;
IndicesDescription() = default;
bool empty() const { return indices.empty(); }
bool has(const String & name) const;
String toString() const;
static IndicesDescription parse(const String & str);
};
}