OptionalconfigDuckDB configuration options. Controls access mode, security settings, and custom configuration.
OptionaluseWhether to use the main thread instead of a Web Worker. Defaults to false (use Web Worker). Note: Main thread mode blocks the UI during operations.
OptionalwasmURL to the Emscripten JS file (duckdb.js). Required for proper bundler support.
OptionalwasmPre-compiled WebAssembly.Module (for Cloudflare Workers). In Workers, import the WASM file directly and pass it here.
OptionalwasmURL to the WASM file (for browser environments). If not provided, uses the default bundled WASM location.
OptionalworkerPre-created Worker instance. Use createWorker for CDN loading to work around cross-origin restrictions.
OptionalworkerURL to the worker script (for browser environments). If not provided, uses the default bundled worker location.
Options for initializing the DuckDB WASM module.