MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / executeInternal

Method executeInternal

src/processor/operator/simple/use_database.cpp:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace processor {
10
11void UseDatabase::executeInternal(ExecutionContext* context) {
12 auto dbManager = main::DatabaseManager::Get(*context->clientContext);
13 dbManager->setDefaultDatabase(dbName);
14 appendMessage("Used database successfully.",
15 storage::MemoryManager::Get(*context->clientContext));
16}
17
18std::string UseDatabasePrintInfo::toString() const {
19 std::string result = "Database: ";

Callers

nothing calls this directly

Calls 1

setDefaultDatabaseMethod · 0.45

Tested by

no test coverage detected