$ luarocks install luasql-postgres
LuaSQL is a simple interface from Lua to a DBMS. It enables a Lua program to connect to databases, execute arbitrary SQL statements and retrieve results in a row-by-row cursor fashion.
Versions
Dependencies
lua >= 5.0