#include #include #include #include namespace DB { bool ParserDatabaseOrNone::parseImpl(Pos & pos, ASTPtr & node, Expected & expected) { auto result = std::make_shared(); node = result; if (ParserKeyword(Keyword::NONE).ignore(pos, expected)) { result->none = true; return true; } String database_name; if (parseIdentifierOrStringLiteral(pos, expected, database_name)) { result->database_name = database_name; return true; } return false; } }