mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
27 lines
605 B
C++
27 lines
605 B
C++
#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;
|
|
};
|
|
|
|
}
|