This example uses luasql
and was tested on Lua v5.4
Install the Postgres driver using LuaRocks:
luarocks install luasql-postgres
There are a few helper functions in utils.lua
for iterating over rows
and dumpings a table to stdout.
This example uses luasql
and was tested on Lua v5.4
Install the Postgres driver using LuaRocks:
luarocks install luasql-postgres
There are a few helper functions in utils.lua
for iterating over rows
and dumpings a table to stdout.