Replies: 2 comments 3 replies
-
Modified the example from https://observablehq.com/@kimmolinna/duckdb-wasm-shell-on-observablehq: import * as wasm from 'https://cdn.jsdelivr.net/npm/@duckdb/[email protected]/+esm';
var container = document.getElementById("container");
var shell = await wasm.embed({
shellModule: 'duckdb/shell_bg.wasm', //bg.arrayBuffer(),
container: container,
resolveDatabase: async () => {return db;}
})
console.log("shell", shell); |
Beta Was this translation helpful? Give feedback.
-
I have tried this static example, but it fails. I have tried a few different ( static, simple) approaches, and all fails at the resolution of the cdn server wasm libraries. I am seeking an appproach where I do not have to run npm or similar. None of the approaches: Worked. What is the recommended way of getting the libraries ( or even serving them locally?). Apologies for naive questions ,I am a js noob, but keen to get duckdb running in the browser. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to have something like the example here: https://github.com/duckdb/duckdb-wasm/blob/main/examples/bare-browser/index.html but adapted for duckdb-wasm-shell
Or if that is not feasible, a way to use the shell with a local file server/host without the need to mess with build tools
Beta Was this translation helpful? Give feedback.
All reactions