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

Function isHttpfsLoaded

tools/shell/shell_runner.cpp:87–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87bool isHttpfsLoaded(const std::shared_ptr<Connection>& conn) {
88 const auto& loadedExtensions =
89 lbug::extension::ExtensionManager::Get(*conn->getClientContext())->getLoadedExtensions();
90 return std::any_of(loadedExtensions.begin(), loadedExtensions.end(),
91 [](const auto& extension) { return extension.getExtensionName() == "HTTPFS"; });
92}
93
94void installAndLoadHttpfsForRemoteInit(const std::shared_ptr<Connection>& conn,
95 const std::string& initFile) {

Callers 1

Calls 4

getExtensionNameMethod · 0.80
getClientContextMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected