Adds templating to DuckDB, enabling dynamic generation of text, HTML, and reports directly within SQL queries using the MiniJinja engine.
Maintainer(s):
rustyconover
Installing and Loading
INSTALL minijinja FROM community;
LOAD minijinja;
About minijinja
For more information regarding usage, see the documentation.
Added Functions
| function_name | function_type | description | comment | examples |
|---|---|---|---|---|
| minijinja_render | scalar | Render a Jinja2-style template using the MiniJinja templating engine | NULL | [minijinja_render('Hello World!')] |
| minijinja_render_with_context | scalar | Render a Jinja2-style template with a JSON context | NULL | [minijinja_render_with_context('Hello !', '{"name": "World"}')] |
Overloaded Functions
| function_name | function_type | description | comment | examples | |—————|—————|————-|———|———-|
Added Types
| type_name | type_size | logical_type | type_category | internal | |———–|———-:|————–|—————|———-|
Added Settings
| name | description | input_type | scope | aliases | |——|————-|————|——-|———|