MCPcopy Create free account
hub / github.com/observablehq/framework / insertArray

Function insertArray

src/client/stdlib/duckdb.js:323–327  ·  view source on GitHub ↗
(database, name, array, options)

Source from the content-addressed store, hash-verified

321}
322
323async function insertArray(database, name, array, options) {
324 const arrow = await import("npm:apache-arrow");
325 const table = arrow.tableFromJSON(array);
326 return await insertArrowTable(database, name, table, options);
327}
328
329async function createDuckDB() {
330 const {mainWorker, mainModule} = await bundle;

Callers 1

insertSourceFunction · 0.85

Calls 1

insertArrowTableFunction · 0.85

Tested by

no test coverage detected