@duckdb/duckdb-wasm 0.0.41-dev180.0 → 0.0.41-dev187.0
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-browser-async-next-coi.worker.js +1 -1
- package/dist/duckdb-browser-async-next-coi.worker.js.map +2 -2
- package/dist/duckdb-browser-async-next.worker.js +6 -6
- package/dist/duckdb-browser-async-next.worker.js.map +2 -2
- package/dist/duckdb-browser-async.js +1 -1
- package/dist/duckdb-browser-async.js.map +2 -2
- package/dist/duckdb-browser-async.worker.js +1 -1
- package/dist/duckdb-browser-async.worker.js.map +2 -2
- package/dist/duckdb-browser-sync-next.js +1 -1
- package/dist/duckdb-browser-sync-next.js.map +2 -2
- package/dist/duckdb-browser-sync.js +1 -1
- package/dist/duckdb-browser-sync.js.map +2 -2
- package/dist/duckdb-esm.js +1 -1
- package/dist/duckdb-esm.js.map +2 -2
- package/dist/duckdb-node-async-next.worker.js +1 -1
- package/dist/duckdb-node-async-next.worker.js.map +2 -2
- package/dist/duckdb-node-async.js +1 -1
- package/dist/duckdb-node-async.js.map +2 -2
- package/dist/duckdb-node-async.worker.js +2 -2
- package/dist/duckdb-node-async.worker.js.map +2 -2
- package/dist/duckdb-node-sync-next.js +1 -1
- package/dist/duckdb-node-sync-next.js.map +2 -2
- package/dist/duckdb-node-sync.js +2 -2
- package/dist/duckdb-node-sync.js.map +2 -2
- package/dist/tests-browser.js +13 -1
- package/dist/tests-browser.js.map +2 -2
- package/dist/tests-node.js +69 -69
- package/dist/tests-node.js.map +2 -2
- package/dist/types/src/bindings/connection.d.ts +2 -0
- package/dist/types/src/parallel/async_connection.d.ts +2 -0
- package/package.json +1 -1
package/dist/tests-browser.js
CHANGED
|
@@ -14910,6 +14910,12 @@ return true;`);
|
|
|
14910
14910
|
console.assert(reader.isStream());
|
|
14911
14911
|
return reader;
|
|
14912
14912
|
}
|
|
14913
|
+
insertArrowTable(table, options) {
|
|
14914
|
+
if (table.schema.fields.length == 0) {
|
|
14915
|
+
console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually");
|
|
14916
|
+
}
|
|
14917
|
+
this.insertArrowBatches(table.schema, table.chunks, options);
|
|
14918
|
+
}
|
|
14913
14919
|
insertArrowBatches(schema, batches, options) {
|
|
14914
14920
|
if (schema.fields.length == 0) {
|
|
14915
14921
|
console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually");
|
|
@@ -20440,6 +20446,12 @@ return true;`);
|
|
|
20440
20446
|
console.assert(reader.isStream());
|
|
20441
20447
|
return reader;
|
|
20442
20448
|
}
|
|
20449
|
+
async insertArrowTable(table, options) {
|
|
20450
|
+
if (table.schema.fields.length == 0) {
|
|
20451
|
+
console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually");
|
|
20452
|
+
}
|
|
20453
|
+
await this.insertArrowBatches(table.schema, table.chunks, options);
|
|
20454
|
+
}
|
|
20443
20455
|
async insertArrowBatches(schema, batches, options) {
|
|
20444
20456
|
const buffer = new arrow3.AsyncByteQueue();
|
|
20445
20457
|
const writer = new arrow3.RecordBatchStreamWriter().reset(buffer, schema);
|
|
@@ -20842,7 +20854,7 @@ return true;`);
|
|
|
20842
20854
|
|
|
20843
20855
|
// package.json
|
|
20844
20856
|
var name = "@duckdb/duckdb-wasm";
|
|
20845
|
-
var version = "0.0.41-
|
|
20857
|
+
var version = "0.0.41-dev187.0";
|
|
20846
20858
|
var description = "DuckDB powered by WebAssembly";
|
|
20847
20859
|
var repository = {
|
|
20848
20860
|
type: "git",
|