Pllua: Difference between revisions

From Alpine Linux
mNo edit summary
(Category:SQL)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
PL/Lua is an implementation of Lua as a loadable procedural language for PostgreSQL: with PL/Lua you can use PostgreSQL functions and triggers written in the Lua programming language.
= How to Install and Use PL/Lua =
= How to Install and Use PL/Lua =
PL/Lua is an implementation of Lua as a loadable procedural language for PostgreSQL: with PL/Lua you can use PostgreSQL functions and triggers written in the Lua programming language.


# Install PL/Lua
# Install PL/Lua
Line 24: Line 25:
  trigger table:
  trigger table:
  warning function:
  warning function:
[[Category:Lua]]
[[Category:SQL]]

Latest revision as of 23:44, 24 March 2012

PL/Lua is an implementation of Lua as a loadable procedural language for PostgreSQL: with PL/Lua you can use PostgreSQL functions and triggers written in the Lua programming language.

How to Install and Use PL/Lua

  1. Install PL/Lua
apk add pllua
  1. Install PL/Lua on your database.
psql -U postgres -f /usr/share/postgresql/contrib/pllua.sql <DBNAME>

Official Documentation

Official documentation is found at http://pllua.projects.postgresql.org/.

Additional Functions

These functions may not be listed in other documentation, but were found by printing entries in _G in a PL/Lua trigger.

_PLVERSION PL/Lua
fromstring function:
info function:
log function:
notice function:
server table:
setshared function:
shared table:
trigger table:
warning function: