aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Parsers/Access/ParserUserNameWithHost.h
blob: 453b816a98d992ac870e43c2d034e480aabfe255 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <Parsers/IParserBase.h>


namespace DB
{
/** Parses a user name.
  * It can be a simple string or identifier or something like `name@host`.
  */
class ParserUserNameWithHost : public IParserBase
{
protected:
    const char * getName() const override { return "UserNameWithHost"; }
    bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
};


class ParserUserNamesWithHost : public IParserBase
{
protected:
    const char * getName() const override { return "UserNamesWithHost"; }
    bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
};

}