11diff --git a/src/include/duckdb/main/database.hpp b/src/include/duckdb/main/database.hpp
2- index d3c5fb9bd5..b3d0aaa09e 100644
2+ index d3c5fb9bd5..eace7b4af1 100644
33--- a/src/include/duckdb/main/database.hpp
44+++ b/src/include/duckdb/main/database.hpp
5- @@ -100,6 +100,10 @@ private:
5+ @@ -100,6 +100,11 @@ private:
66 unique_ptr<ExternalFileCache> external_file_cache;
77
88 duckdb_ext_api_v1 (*create_api_v1)();
9+ +
910+ public:
10- + static void SetPreferredRepository(const string& extension, const string &repository);
11- + static string GetPreferredRepository(const string& extension);
12- + static unordered_map<string, string> extensionsRepos;
11+ + static void SetPreferredRepository(const string& extension, const string &repository);
12+ + static string GetPreferredRepository(const string& extension);
13+ + static unordered_map<string, string> extensionsRepos;
1314 };
1415
1516 //! The database object. This object holds the catalog and all the
@@ -31,10 +32,24 @@ index 6ccd1a1156..8040f537b6 100644
3132 //! Debugging repositories (target local, relative paths that are produced by DuckDB's build system)
3233 static constexpr const char *BUILD_DEBUG_REPOSITORY_PATH = "./build/debug/repository";
3334diff --git a/src/main/database.cpp b/src/main/database.cpp
34- index db6e1ed445..d495aab058 100644
35+ index 773f8d967a..fa089a47ee 100644
3536--- a/src/main/database.cpp
3637+++ b/src/main/database.cpp
37- @@ -356,6 +356,28 @@ DuckDB::DuckDB(DatabaseInstance &instance_p) : instance(instance_p.shared_from_t
38+ @@ -1,5 +1,4 @@
39+ #include "duckdb/main/database.hpp"
40+ -
41+ #include "duckdb/catalog/catalog.hpp"
42+ #include "duckdb/common/virtual_file_system.hpp"
43+ #include "duckdb/execution/index/index_type_set.hpp"
44+ @@ -35,6 +34,7 @@
45+ #include "duckdb/common/thread.hpp"
46+ #endif
47+
48+ +
49+ namespace duckdb {
50+
51+ DBConfig::DBConfig() {
52+ @@ -357,6 +357,28 @@ DuckDB::DuckDB(DatabaseInstance &instance_p) : instance(instance_p.shared_from_t
3853 DuckDB::~DuckDB() {
3954 }
4055
@@ -63,11 +78,11 @@ index db6e1ed445..d495aab058 100644
6378 SecretManager &DatabaseInstance::GetSecretManager() {
6479 return *config.secret_manager;
6580 }
66- @@ -507 ,6 +529 ,10 @@ idx_t DuckDB::NumberOfThreads() {
81+ @@ -508 ,6 +530 ,10 @@ idx_t DuckDB::NumberOfThreads() {
6782
6883 bool DatabaseInstance::ExtensionIsLoaded(const std::string &name) {
6984 auto extension_name = ExtensionHelper::GetExtensionName(name);
70- + if (extension_name == "httpfs") {
85+ + if (extension_name == "httpfs" && preloaded_httpfs ) {
7186+ ExtensionInstallInfo info;
7287+ SetExtensionLoaded(extension_name, info);
7388+ }
0 commit comments