コンテンツにスキップ

initDuckDB

このコンテンツはまだ日本語訳がありません。

initDuckDB(options?): Promise<AsyncDuckDB>

Defined in: db/duckdb.ts:164

Initialize DuckDB-wasm (singleton). When options.bundles is provided, the worker/wasm are loaded from those (self-hosted) URLs; with no options it falls back to the jsDelivr CDN (legacy behavior). Retries a few times so a transient hiccup doesn’t fail the whole session — historically a source of viewer E2E flakiness (see #70/#65). Safe to call multiple times — returns the same promise, so the first caller’s options win.

DuckDBInitOptions

Promise<AsyncDuckDB>