ClickHouse/dbms/src/Storages/IndicesDescription.h
2019-10-07 20:23:05 +03:00

28 lines
440 B
C++

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