@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.
@@ -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-dev180.0";
20857
+ var version = "0.0.41-dev187.0";
20846
20858
  var description = "DuckDB powered by WebAssembly";
20847
20859
  var repository = {
20848
20860
  type: "git",