mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-30 13:40:50 +00:00
15 lines
402 B
C++
15 lines
402 B
C++
|
#include <Parsers/ASTQueryWithTableAndOutput.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
void ASTQueryWithTableAndOutput::formatHelper(const FormatSettings & settings, const char * name) const
|
||
|
{
|
||
|
settings.ostr << (settings.hilite ? hilite_keyword : "") << name << " " << (settings.hilite ? hilite_none : "");
|
||
|
settings.ostr << (!database.empty() ? backQuoteIfNeed(database) + "." : "") << backQuoteIfNeed(table);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|