aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Parsers/Access/ParserMoveAccessEntityQuery.h
blob: 3accec883dd567f09a48696b7a5cce166ee8639e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <Parsers/IParserBase.h>


namespace DB
{
/** Parses queries like
  * MOVE {USER | ROLE | QUOTA | [ROW] POLICY | [SETTINGS] PROFILE} [IF EXISTS] name [,...] [ON [database.]table [,...]] TO storage_name
  */
class ParserMoveAccessEntityQuery : public IParserBase
{
protected:
    const char * getName() const override { return "MOVE access entity query"; }
    bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
};
}