Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 607 Bytes

File metadata and controls

30 lines (20 loc) · 607 Bytes

About

Lua-pgsql is a simple sql connector to postgres database.

How to use

Replace the string argument in postgres.connect located at test.lua with your database parameters. If you database has the following parameters:

Parameter Value
host localhost
dbname database
user admin
password passwd

then replace to the following:

postgres.connect("host=localhost dbname=database user=admin password=passwd")

Run test.lua with any valid query in you database to retrieve the result as

lua test.lua

Version

Current version of this project is 1.0.