DuckDB Integration#

Most users should prefer the methods on Table (e.g. scan_duckdb(), write_arrow()), which interact with DuckDB internally.

The ducklake.duckdb.utils module exposes a few low-level helpers used by the SDK to interact with DuckDB connections directly.

fetch_result_dicts(connection, query[, ...])

build_named_query_params(**kwargs)

Build named parameters for use in DuckDB queries.

parse_cleanup_path_result(rows)

Parse the result of a cleanup query into a more user-friendly format.

parse_maintenance_result(rows)

Parse the result of a maintenance query into a more user-friendly format.