1 local s = require"luasql.postgres"
3 local env = assert (luasql.postgres ())
4 local conn = assert (env:connect ("luasql-test", "tomas"))
5 local cur = assert (conn:execute ("select count(*) from fetch_test"))
8 cgilua.put ("Total lines at table fetch_test is "..cur:fetch())
9 cgilua.put (string.format ("<br>\n%s == %s<br>\n", tostring(s), tostring(luasql)))