mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 03:52:15 +00:00
20 lines
682 B
C++
20 lines
682 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, String & table, bool & wildcard, bool & default_database);
|
|
|
|
bool parseDatabase(IParser::Pos & pos, Expected & expected, String & database_str);
|
|
|
|
bool parseDatabaseAsAST(IParser::Pos & pos, Expected & expected, ASTPtr & database);
|
|
|
|
}
|