| 120 | } |
| 121 | |
| 122 | ExtensionLoadResult 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 | |
| 135 | void SQLLogicTestRunner::LoadDatabase(string dbpath, bool load_extensions) { |
| 136 | loaded_databases.push_back(dbpath); |
nothing calls this directly
no test coverage detected