Search Shortcut cmd + k | ctrl + k

Runs DCS (Cascading Duck Sheets), CSS-shaped rule sheets that transform duck_blocks documents.

Maintainer(s): teaguesterling

Compatibility Matrix

This table covers all DuckDB releases that have not reached end-of-life, including LTS releases, and shows the 2 most recent patch releases of each. Older patch releases are not listed, but the extension may be available for them as well.

Platform 1.5.5 1.5.6 2.0.0 2.0.1
Linux AMD64
Linux ARM64
macOS AMD64
macOS ARM64
Windows AMD64
Windows ARM64
WebAssembly

Installing and Loading

INSTALL dmb FROM community;
LOAD dmb;

Example

LOAD dmb;

-- Check a sheet: one row per diagnostic
SELECT severity, code, message, line, "column"
FROM dcs_check('h2:contains("Comments") { -dcs-prune: section; } p { -dcs-replace: "(" "x"; }');

-- List the rules and declarations of a sheet
SELECT rule, selector, property, value, specificity
FROM dcs_rules('heading { -dcs-id: auto; } .comment { --audience: "kids"; }');

About dmb

dmb applies a DCS sheet to a duck_blocks document and returns a new document. A selector chooses blocks, as in CSS. The declarations set ids and attributes, drop sections, wrap or retype blocks, add generated text, reorder blocks, and write front matter. Any duck_block_utils renderer can then write the result as Markdown, HTML or text.

Functions: dcs_apply, dcs_select, dcs_explain, dcs_check, dcs_rules, dcs_parse_markdown, dcs_parse_html, dcs_version. See https://duckdb-dmb.readthedocs.io.

Added Functions

function_name function_type description comment examples
dcs_apply scalar NULL NULL  
dcs_apply table NULL NULL  
dcs_check table NULL NULL  
dcs_explain scalar NULL NULL  
dcs_format scalar NULL NULL  
dcs_parse_html macro NULL NULL  
dcs_parse_markdown macro NULL NULL  
dcs_parser_abi scalar NULL NULL  
dcs_rules table NULL NULL  
dcs_select scalar NULL NULL  
dcs_sheet scalar NULL NULL  
dcs_version scalar NULL NULL  
read_dcs table NULL NULL  
read_dcs_objects table NULL NULL  

Overloaded Functions

This extension does not add any function overloads.

Added Types

type_name type_size logical_type type_category internal
DCS 16 LIST COMPOSITE true

Added Settings

name description input_type scope aliases typed_value
temp_directory Set the directory to which temporary files are written. VARCHAR GLOBAL [] post.db.tmp
© 2026 DuckDB Foundation, Amsterdam NL
DuckDB Home Code of Conduct Trademark Use Blog