mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
25 lines
421 B
C++
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);
|
|
};
|
|
|
|
}
|