MCPcopy Create free account
hub / github.com/duckdb/duckdb / LoadExtension

Method LoadExtension

test/sqlite/sqllogic_test_runner.cpp:122–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122ExtensionLoadResult SQLLogicTestRunner::LoadExtension(DuckDB &db, const std::string &extension) {
123 auto &test_config = TestConfiguration::Get();
124 if (test_config.GetExtensionAutoLoadingMode() != TestConfiguration::ExtensionAutoLoadingMode::NONE) {
125 // try LOAD extension
126 Connection con(db);
127 auto result = con.Query("LOAD " + extension);
128 if (!result->HasError()) {
129 return ExtensionLoadResult::LOADED_EXTENSION;
130 }
131 }
132 return ExtensionHelper::LoadExtension(db, extension);
133}
134
135void SQLLogicTestRunner::LoadDatabase(string dbpath, bool load_extensions) {
136 loaded_databases.push_back(dbpath);

Callers

nothing calls this directly

Calls 3

QueryMethod · 0.45
HasErrorMethod · 0.45

Tested by

no test coverage detected