Skip to content

Commit aa3735f

Browse files
committed
fix: support duckdb 1.3
1 parent 668280d commit aa3735f

File tree

5 files changed

+5
-42
lines changed

5 files changed

+5
-42
lines changed

lib/base_exported_list.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ _main
22
_malloc
33
_calloc
44
_free
5+
stringToUTF8
6+
lengthBytesUTF8
7+
stackAlloc
58
_duckdb_web_clear_response
69
_duckdb_web_collect_file_stats
710
_duckdb_web_connect

packages/duckdb-wasm/test/opfs.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,5 +445,4 @@ export function testOPFS(baseDir: string, bundle: () => DuckDBBundle): void {
445445
}
446446

447447
//ignore block
448-
const _ignore: () => void = () => {
449-
};
448+
const _ignore: () => void = () => {};

patches/duckdb/no_httpfs.patch

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,6 @@ diff --git a/src/main/database.cpp b/src/main/database.cpp
22
index db6e1ed445..17f845c75e 100644
33
--- a/src/main/database.cpp
44
+++ b/src/main/database.cpp
5-
@@ -356,6 +356,28 @@ DuckDB::DuckDB(DatabaseInstance &instance_p) : instance(instance_p.shared_from_t
6-
DuckDB::~DuckDB() {
7-
}
8-
9-
+unordered_map<string, string> DatabaseInstance::extensionsRepos = {};
10-
+
11-
+void DatabaseInstance::SetPreferredRepository(const string& extension, const string &repository) {
12-
+ auto &x = extensionsRepos;
13-
+ auto it = x.find(extension);
14-
+ if (it != x.end()) {
15-
+ it->second=repository;
16-
+ } else {
17-
+ x.emplace(extension, repository);
18-
+ }
19-
+}
20-
+
21-
+string DatabaseInstance::GetPreferredRepository(const string& extension) {
22-
+ const auto &x = extensionsRepos;
23-
+ auto it = x.find(extension);
24-
+ if (it != x.end()) {
25-
+ return it->second;
26-
+ }
27-
+ return "";
28-
+}
29-
+
30-
+
31-
SecretManager &DatabaseInstance::GetSecretManager() {
32-
return *config.secret_manager;
33-
}
345
@@ -506,6 +528,7 @@ idx_t DuckDB::NumberOfThreads() {
356
}
367

patches/rapidjson/rapidjson.patch

Lines changed: 0 additions & 10 deletions
This file was deleted.

submodules/duckdb

Submodule duckdb updated 2380 files

0 commit comments

Comments
 (0)