Initialization options with pre-compiled WASM module
Promise that resolves when initialization is complete
import { init, DuckDB } from '@ducklings/workers';
import wasmModule from '@ducklings/workers/wasm';
await init({ wasmModule });
const db = new DuckDB();
const conn = db.connect();
// httpfs works in CF Workers with this build!
const result = await conn.query("SELECT * FROM 'https://example.com/data.parquet'");
Initialize the DuckDB WASM module (workers build with Asyncify).
This version is optimized for Cloudflare Workers and uses the workers-specific WASM build that includes Asyncify support for async HTTP operations.