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

Method resolveDatabase

src/Interpreters/Context.cpp:1408–1414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1406const RefreshSet & Context::getRefreshSet() const { return shared->refresh_set; }
1407
1408String Context::resolveDatabase(const String & database_name) const
1409{
1410 String res = database_name.empty() ? getCurrentDatabase() : database_name;
1411 if (res.empty())
1412 throw Exception(ErrorCodes::UNKNOWN_DATABASE, "Default database is not selected");
1413 return res;
1414}
1415
1416String Context::getPath() const
1417{

Callers 15

registerStorageBufferFunction · 0.80
movePartitionToTableMethod · 0.80
applyASClauseFunction · 0.80
setEngineMethod · 0.80
fillTableIfNeededMethod · 0.80
getRewrittenQueryMethod · 0.80
executeMethod · 0.80
executeImplMethod · 0.80
getRewrittenQueryMethod · 0.80
executeMethod · 0.80
executeImplMethod · 0.80

Calls 2

ExceptionClass · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected