Evaluate Lua scripts within queries
Maintainer(s):
isaacbrodsky
Installing and Loading
INSTALL lua FROM community;
LOAD lua;
Example
SELECT lua('return "Hello " .. context', "World");
About lua
Adds support for the Lua embedded scripting language to DuckDB.
Added Functions
function_name | function_type | description | comment | examples |
---|---|---|---|---|
lua | scalar | NULL | NULL |
Added Settings
name | description | input_type | scope | aliases |
---|---|---|---|---|
lua_context_name | Global context variable name. Default: 'context' | VARCHAR | GLOBAL | [] |