@malloydata/db-duckdb 0.0.299 → 0.0.301
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/dist/duckdb_connection.js +10 -7
- package/package.json +2 -2
|
@@ -179,12 +179,7 @@ class DuckDBConnection extends duckdb_common_1.DuckDBCommon {
|
|
|
179
179
|
reject(err);
|
|
180
180
|
}
|
|
181
181
|
else {
|
|
182
|
-
rows =
|
|
183
|
-
if (typeof value === 'bigint') {
|
|
184
|
-
return Number(value);
|
|
185
|
-
}
|
|
186
|
-
return value;
|
|
187
|
-
}));
|
|
182
|
+
rows = processBigInts(rows);
|
|
188
183
|
resolve({
|
|
189
184
|
rows,
|
|
190
185
|
totalRows: rows.length,
|
|
@@ -216,7 +211,7 @@ class DuckDBConnection extends duckdb_common_1.DuckDBCommon {
|
|
|
216
211
|
break;
|
|
217
212
|
}
|
|
218
213
|
index++;
|
|
219
|
-
yield row;
|
|
214
|
+
yield processBigInts(row);
|
|
220
215
|
}
|
|
221
216
|
}
|
|
222
217
|
async createHash(sqlCommand) {
|
|
@@ -235,4 +230,12 @@ class DuckDBConnection extends duckdb_common_1.DuckDBCommon {
|
|
|
235
230
|
}
|
|
236
231
|
exports.DuckDBConnection = DuckDBConnection;
|
|
237
232
|
DuckDBConnection.activeDBs = {};
|
|
233
|
+
function processBigInts(data) {
|
|
234
|
+
return JSON.parse(JSON.stringify(data, (_key, value) => {
|
|
235
|
+
if (typeof value === 'bigint') {
|
|
236
|
+
return Number(value);
|
|
237
|
+
}
|
|
238
|
+
return value;
|
|
239
|
+
}));
|
|
240
|
+
}
|
|
238
241
|
//# sourceMappingURL=duckdb_connection.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/db-duckdb",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.301",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@duckdb/duckdb-wasm": "1.29.1-dev132.0",
|
|
48
|
-
"@malloydata/malloy": "0.0.
|
|
48
|
+
"@malloydata/malloy": "0.0.301",
|
|
49
49
|
"@motherduck/wasm-client": "^0.6.6",
|
|
50
50
|
"apache-arrow": "^17.0.0",
|
|
51
51
|
"duckdb": "1.3.1",
|