Replies: 1 comment 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.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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