Evaluate the Rhai scripting language in DuckDB
Maintainer(s):
rustyconover
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.4.4 | 1.4.5 | 1.5.5 | 1.5.6 | 2.0.0 |
|---|---|---|---|---|---|
| Linux AMD64 | |||||
| Linux ARM64 | |||||
| macOS AMD64 | |||||
| macOS ARM64 | |||||
| Windows AMD64 | |||||
| Windows ARM64 | |||||
| WebAssembly |
Installing and Loading
INSTALL evalexpr_rhai FROM community;
LOAD evalexpr_rhai;
About evalexpr_rhai
For more information regarding usage, see the documentation.
Added Functions
| function_name | function_type | description | comment | examples |
|---|---|---|---|---|
| evalexpr_rhai | scalar | Evaluate a Rhai scripting language expression and return the result as JSON | NULL | [evalexpr_rhai('40 + 2'), evalexpr_rhai('[1, 2, 3].map(|x| x * 2)')] |
| evalexpr_rhai | scalar | Evaluate a Rhai scripting language expression with a JSON context object accessible as 'context' | NULL | [evalexpr_rhai('context.x + context.y', '{"x": 10, "y": 20}'), evalexpr_rhai('context.items.len()', '{"items": [1, 2, 3]}')] |
Overloaded Functions
This extension does not add any function overloads.
Added Types
This extension does not add any types.
Added Settings
This extension does not add any settings.