1
1
diff --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
3
3
--- a/src/include/duckdb/main/database.hpp
4
4
+++ b/src/include/duckdb/main/database.hpp
5
- @@ -100,6 +100,10 @@ private:
5
+ @@ -100,6 +100,11 @@ private:
6
6
unique_ptr<ExternalFileCache> external_file_cache;
7
7
8
8
duckdb_ext_api_v1 (*create_api_v1)();
9
+ +
9
10
+ 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;
13
14
};
14
15
15
16
//! The database object. This object holds the catalog and all the
@@ -31,10 +32,24 @@ index 6ccd1a1156..8040f537b6 100644
31
32
//! Debugging repositories (target local, relative paths that are produced by DuckDB's build system)
32
33
static constexpr const char *BUILD_DEBUG_REPOSITORY_PATH = "./build/debug/repository";
33
34
diff --git a/src/main/database.cpp b/src/main/database.cpp
34
- index db6e1ed445..d495aab058 100644
35
+ index 773f8d967a..fa089a47ee 100644
35
36
--- a/src/main/database.cpp
36
37
+++ 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
38
53
DuckDB::~DuckDB() {
39
54
}
40
55
@@ -63,11 +78,11 @@ index db6e1ed445..d495aab058 100644
63
78
SecretManager &DatabaseInstance::GetSecretManager() {
64
79
return *config.secret_manager;
65
80
}
66
- @@ -507 ,6 +529 ,10 @@ idx_t DuckDB::NumberOfThreads() {
81
+ @@ -508 ,6 +530 ,10 @@ idx_t DuckDB::NumberOfThreads() {
67
82
68
83
bool DatabaseInstance::ExtensionIsLoaded(const std::string &name) {
69
84
auto extension_name = ExtensionHelper::GetExtensionName(name);
70
- + if (extension_name == "httpfs") {
85
+ + if (extension_name == "httpfs" && preloaded_httpfs ) {
71
86
+ ExtensionInstallInfo info;
72
87
+ SetExtensionLoaded(extension_name, info);
73
88
+ }
0 commit comments