ClickHouse/src/Parsers/parseDatabaseAndTableName.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
679 B
C++
Raw Normal View History

#pragma once
#include <Parsers/IParser.h>
namespace DB
{
/// Parses [db.]name
bool parseDatabaseAndTableName(IParser::Pos & pos, Expected & expected, String & database_str, String & table_str);
2021-11-16 08:58:28 +00:00
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);
2021-08-27 06:30:21 +00:00
bool parseDatabase(IParser::Pos & pos, Expected & expected, String & database_str);
2021-11-16 08:58:28 +00:00
bool parseDatabaseAsAST(IParser::Pos & pos, Expected & expected, ASTPtr & database);
2021-09-22 13:57:17 +00:00
}