Root package provides typed DuckDB helpers:
import duckdb "vendor/duckdb"open,connect,close, anddisconnectmanage ownership.executeaccepts typedQuery_Paramvalues.queryfills tagged structs into dynamic arrays.prepare, bind, step, value, and destroy helpers support manual statements.last_errorreturns the last operation's borrowed error text.
Query results own cloned strings and blobs. Delete those fields, then delete the result array after use.
Raw C bindings live in vendor/duckdb/raw:
import duckdb_raw "vendor/duckdb/raw"