Ducklings API Documentation
    Preparing search index...

    Interface InitOptions

    Options for initializing the DuckDB WASM module (workers build).

    interface InitOptions {
        httpFetch?: (url: string, init: RequestInit) => Promise<Response>;
        wasmModule: Module;
    }
    Index

    Properties

    httpFetch?: (url: string, init: RequestInit) => Promise<Response>

    Optional transport for httpfs requests; fixed for the module lifetime.

    wasmModule: Module

    Pre-compiled WebAssembly.Module (required for Cloudflare Workers) In Workers, import the WASM file directly and pass it here.

    import wasmModule from '@ducklings/workers/wasm';
    await init({ wasmModule });