Skip to content
DuckDB community extension

lua

Evaluate Lua scripts within queries

01 / SETUP

Install and load

Run these commands in a Haybarn SQL session. The extension is available from the community repository.

Haybarn 2.0.0 · SQL
INSTALL lua FROM community;
LOAD lua FROM community;

Try it in a temporary SQL session with lua already loaded. Queries run in this tab; examples using files or services need their own setup.

Using upstream DuckDB? Follow the maintainer’s installation instructions.

02 / QUERY

Usage example

SQL
SELECT lua('return "Hello " .. context', 'World');

Provided by isaacbrodsky. Not yet verified on Haybarn 2.0.0.

Sample data & setup

About this extension

Adds support for the Lua embedded scripting language to DuckDB.

Project overview from the community descriptor.

Documentation and resources

Project and build details
Repository
isaacbrodsky/duckdb-lua
License
MIT
Maintainers
isaacbrodsky
Written in
C++
Build source
f630ad32898f
Build definition
Community descriptor