mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
17 lines
460 B
C++
17 lines
460 B
C++
#include <Parsers/ASTQueryWithTableAndOutput.h>
|
|
#include <Common/quoteString.h>
|
|
#include <IO/Operators.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);
|
|
}
|
|
|
|
}
|
|
|