ClickHouse/src/Parsers/parseDatabaseAndTableName.h
Nikolay Degterinsky 64927938c6 Minor refactor
2021-11-16 08:58:28 +00:00

20 lines
679 B
C++

#pragma once
#include <Parsers/IParser.h>
namespace DB
{
/// Parses [db.]name
bool parseDatabaseAndTableName(IParser::Pos & pos, Expected & expected, String & database_str, String & table_str);
bool parseDatabaseAndTableAsAST(IParser::Pos & pos, Expected & expected, ASTPtr & database, ASTPtr & table);
/// Parses [db.]name or [db.]* or [*.]*
bool parseDatabaseAndTableNameOrAsterisks(IParser::Pos & pos, Expected & expected, String & database, bool & any_database, String & table, bool & any_table);
bool parseDatabase(IParser::Pos & pos, Expected & expected, String & database_str);
bool parseDatabaseAsAST(IParser::Pos & pos, Expected & expected, ASTPtr & database);
}