mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
24 lines
560 B
C++
24 lines
560 B
C++
#pragma once
|
|
|
|
#include <Parsers/ASTQueryWithOutput.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
/// SHOW [ROW] POLICIES [CURRENT] [ON [database.]table]
|
|
class ASTShowRowPoliciesQuery : public ASTQueryWithOutput
|
|
{
|
|
public:
|
|
bool current = false;
|
|
String database;
|
|
String table_name;
|
|
|
|
String getID(char) const override { return "SHOW POLICIES query"; }
|
|
ASTPtr clone() const override { return std::make_shared<ASTShowRowPoliciesQuery>(*this); }
|
|
|
|
protected:
|
|
void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override;
|
|
};
|
|
|
|
}
|