Creates a new DuckDB database instance.
Optional configuration options
Read a registered file back out as bytes.
The mirror of registerFileBuffer, and how a query's output leaves the
filesystem — COPY (…) TO 'x.parquet', then this.
File name to read
The file's contents
Remove a file registered with registerFileBuffer.
File name to remove
Register an in-memory buffer as a file DuckDB can read by name.
Useful when the bytes are already in hand — fetched from object storage through a
platform binding, say — and there is no URL DuckDB could httpfs instead. Mirrors
registerFileBuffer in @ducklings/browser, which has had this API all along.
File name to register, optionally with directories
The file's contents
Register text as a file, encoded as UTF-8.
File name to register
The file's contents
StaticcreateCreates a new DuckDB database instance asynchronously.
Optionalconfig: DuckDBConfigOptional configuration options
DuckDB database instance for Cloudflare Workers.
Example