MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / formatQueryImpl

Method formatQueryImpl

src/Parsers/ASTUndropQuery.cpp:23–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void ASTUndropQuery::formatQueryImpl(WriteBuffer & ostr, const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const
24{
25 ostr
26 << "UNDROP TABLE"
27
28 << " ";
29
30 chassert(table);
31
32 if (table)
33 {
34 if (database)
35 {
36 database->format(ostr, settings, state, frame);
37 ostr << '.';
38 }
39
40 chassert(table);
41 table->format(ostr, settings, state, frame);
42 }
43
44 if (uuid != UUIDHelpers::Nil)
45 ostr << " UUID "
46 << quoteString(toString(uuid));
47
48 formatOnCluster(ostr, settings);
49}
50
51}

Callers

nothing calls this directly

Calls 3

toStringFunction · 0.70
quoteStringFunction · 0.50
formatMethod · 0.45

Tested by

no test coverage detected