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

Method getDatabaseName

src/Parsers/ASTIdentifier.cpp:217–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217String ASTTableIdentifier::getDatabaseName() const
218{
219 if (name_parts.size() == 2) return name_parts[0];
220 return {};
221}
222
223ASTPtr ASTTableIdentifier::getTable() const
224{

Callers 15

buzzHouseMethod · 0.45
StateMethod · 0.45
getTargetTableImplMethod · 0.45
readMethod · 0.45
readImplMethod · 0.45
dropInnerTableIfAnyMethod · 0.45
prepareRefreshMethod · 0.45
verifyTableIdFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by 2

StateMethod · 0.36
StateMethod · 0.36