@duckdb/node-api 1.4.3-r.2 → 1.4.3-r.3

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.
@@ -117,12 +117,12 @@ class DuckDBConnection {
117
117
  }
118
118
  async startThenReadAll(sql, values, types) {
119
119
  const reader = await this.startThenRead(sql, values, types);
120
- reader.readAll();
120
+ await reader.readAll();
121
121
  return reader;
122
122
  }
123
123
  async startThenReadUntil(sql, targetRowCount, values, types) {
124
124
  const reader = await this.startThenRead(sql, values, types);
125
- reader.readUntil(targetRowCount);
125
+ await reader.readUntil(targetRowCount);
126
126
  return reader;
127
127
  }
128
128
  async startStream(sql, values, types) {
@@ -144,12 +144,12 @@ class DuckDBConnection {
144
144
  }
145
145
  async startStreamThenReadAll(sql, values, types) {
146
146
  const reader = await this.startStreamThenRead(sql, values, types);
147
- reader.readAll();
147
+ await reader.readAll();
148
148
  return reader;
149
149
  }
150
150
  async startStreamThenReadUntil(sql, targetRowCount, values, types) {
151
151
  const reader = await this.startStreamThenRead(sql, values, types);
152
- reader.readUntil(targetRowCount);
152
+ await reader.readUntil(targetRowCount);
153
153
  return reader;
154
154
  }
155
155
  async prepare(sql) {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@duckdb/node-api",
3
- "version": "1.4.3-r.2",
3
+ "version": "1.4.3-r.3",
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.4.3-r.2"
8
+ "@duckdb/node-bindings": "1.4.3-r.3"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",