Reference

Every function these extensions register. Signatures are read out of the binaries at build time, so they cannot drift from the ones you have loaded. In duckweb a NULL argument reads as the empty string throughout, so app SQL needs no COALESCE around every call.

duckweb

duckweb_asset
Hands a file to the transport, at whatever URL your route matched.
duckweb_chunk
One chunk of a streamed body.
duckweb_client_asset
Serves the client bootstrap’s own scripts.
duckweb_client_shell
A complete HTML response that boots the app in the browser.
duckweb_cookie
Reads one cookie out of a Cookie header value.
duckweb_end
Terminates a streamed body.
duckweb_escape
HTML-escapes text for a page.
duckweb_form
Reads one field from an application/x-www-form-urlencoded request body.
duckweb_head
Opens a streamed response: status line, content type, framing, and any extra header lines.
duckweb_header
One header line, for the extra block of a head or a redirect.
duckweb_header_value
Reads one header out of the request’s header block.
duckweb_match
Gates a branch of render on a route pattern, returning the captured parameters.
duckweb_query
Reads one key from the request target’s query string.
duckweb_redirect
A complete redirect response.
duckweb_render_function
The setting that names which function the transport calls to render a request.
duckweb_serve
Starts a server, and returns.
duckweb_set_cookie
A Set-Cookie header line for the extra block.
duckweb_slot
Reserves a region of the page for content that arrives later in the same response.
duckweb_slot_fill
Delivers the content for a slot, later in the same response.
duckweb_speculate
A speculation rules block, telling the browser which navigations to prepare for.
duckweb_stop
Stops every server in the process.
duckweb_tpl
Fills {{name}} placeholders in a template from a struct.

svg_charts

svg_area_chart
Collapses a group of rows into one filled area chart.
svg_bar_chart
Collapses a group of rows into one bar chart.
svg_chart
Draws several series from a list of structs.
svg_line_chart
Collapses a group of rows into one line chart.