Lua Quick Start

In order to use User Defined Functions (UDF) in Lua, some environment variables need first to be set:

LUA_PATH: Must be set according to the rules for the LUA_PATH setting specified in the Lua documentation (see For example:


LUA_CPATH: Where Lua will search for loadable compiled binary modules. It's not required by eXtremeDB itself, but may be needed when using 3rd party modules.

LD_LIBRARY_PATH: The eXtremeDB directory with the appropriate shared library modules. For example:


MCO_LUA_PATH: The directory that contains modules exdb.lua and kdb.lua. For example:


Once the environment is set up, Lua support will be loaded automatically, no additional steps are required!