--- warning: DO NOT CHANGE THIS MANUALLY, THIS IS GENERATED BY https://github.com/duckdb/community-extensions repository, check README there title: dmb excerpt: | DuckDB Community Extensions Runs DCS (Cascading Duck Sheets), CSS-shaped rule sheets that transform duck_blocks documents. extension: name: dmb description: Runs DCS (Cascading Duck Sheets), CSS-shaped rule sheets that transform duck_blocks documents. version: 0.1.0 language: C++ build: cmake license: Apache-2.0 maintainers: - teaguesterling repo: github: teaguesterling/duckdb_dmb ref: d9b18643d02d26482e6cf831eb882501a3c8ec22 docs: docs_url: https://duckdb-dmb.readthedocs.io hello_world: | 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"; }'); extended_description: | 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. extension_star_count: 0 extension_star_count_pretty: 0 extension_download_count: null extension_download_count_pretty: n/a image: '/images/community_extensions/social_preview/preview_community_extension_dmb.png' layout: community_extension_doc --- ### Compatibility Matrix This table covers all DuckDB releases that have not reached [end-of-life](https://duckdb.org/release_calendar), 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 ```sql INSTALL {{ page.extension.name }} FROM community; LOAD {{ page.extension.name }}; ``` {% if page.docs.hello_world %} ### Example ```sql {{ page.docs.hello_world }}``` {% endif %} {% if page.docs.extended_description %} ### About {{ page.extension.name }} {{ page.docs.extended_description }} {% endif %} ### 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 |