#pragma once #include #include namespace DB { using ConstraintsExpressions = std::vector; struct ConstraintsDescription { std::vector constraints; ConstraintsDescription() = default; bool empty() const { return constraints.empty(); } String toString() const; static ConstraintsDescription parse(const String & str); ConstraintsExpressions getExpressions(const Context & context, const NamesAndTypesList & source_columns_) const; ConstraintsDescription(const ConstraintsDescription & other); ConstraintsDescription & operator=(const ConstraintsDescription & other); }; }