#pragma once #include #include namespace DB { /// DEFINER = SQL SECURITY /// If type was not set during parsing, the default type from settings will be used. /// Currently supports only views. class ASTSQLSecurity : public IAST { public: bool is_definer_current_user{false}; std::shared_ptr definer = nullptr; std::optional type = std::nullopt; String getID(char) const override { return "View SQL Security"; } ASTPtr clone() const override { return std::make_shared(*this); } void formatImpl(const FormatSettings & s, FormatState & state, FormatStateStacked frame) const override; }; }