@duckdb/node-api 1.3.0-alpha.20 → 1.3.1-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/DuckDBConnection.js +6 -4
- package/package.json +2 -2
package/lib/DuckDBConnection.js
CHANGED
|
@@ -27,11 +27,11 @@ class DuckDBConnection {
|
|
|
27
27
|
}
|
|
28
28
|
/** Same as disconnectSync. */
|
|
29
29
|
closeSync() {
|
|
30
|
-
|
|
30
|
+
this.disconnectSync();
|
|
31
31
|
}
|
|
32
32
|
disconnectSync() {
|
|
33
33
|
this.preparedStatements.destroySync();
|
|
34
|
-
|
|
34
|
+
node_bindings_1.default.disconnect_sync(this.connection);
|
|
35
35
|
}
|
|
36
36
|
interrupt() {
|
|
37
37
|
node_bindings_1.default.interrupt(this.connection);
|
|
@@ -44,7 +44,8 @@ class DuckDBConnection {
|
|
|
44
44
|
const prepared = await this.createPrepared(sql);
|
|
45
45
|
try {
|
|
46
46
|
prepared.bind(values, types);
|
|
47
|
-
|
|
47
|
+
const result = await prepared.run();
|
|
48
|
+
return result;
|
|
48
49
|
}
|
|
49
50
|
finally {
|
|
50
51
|
prepared.destroySync();
|
|
@@ -73,7 +74,8 @@ class DuckDBConnection {
|
|
|
73
74
|
if (values) {
|
|
74
75
|
prepared.bind(values, types);
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
const result = await prepared.stream();
|
|
78
|
+
return result;
|
|
77
79
|
}
|
|
78
80
|
finally {
|
|
79
81
|
prepared.destroySync();
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duckdb/node-api",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1-alpha.22",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@duckdb/node-bindings": "1.3.
|
|
8
|
+
"@duckdb/node-bindings": "1.3.1-alpha.22"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|