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

Function tryGetDatabase

src/Interpreters/InterpreterDropQuery.cpp:75–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static DatabasePtr tryGetDatabase(const String & database_name, bool if_exists)
76{
77 return if_exists ? DatabaseCatalog::instance().tryGetDatabase(database_name) : DatabaseCatalog::instance().getDatabase(database_name);
78}
79
80
81InterpreterDropQuery::InterpreterDropQuery(const ASTPtr & query_ptr_, ContextMutablePtr context_) : WithMutableContext(context_), query_ptr(query_ptr_)

Callers 2

executeToDatabaseImplMethod · 0.85
getDDLGuardMethod · 0.85

Calls 2

tryGetDatabaseMethod · 0.80
getDatabaseMethod · 0.45

Tested by

no test coverage detected