pgmoon - PostgreSQL driver for OpenResty

294 views
Skip to first unread message

leaf corcoran

unread,
May 30, 2014, 3:23:21 PM5/30/14
to openre...@googlegroups.com
Hello,

I've created a Postgres driver for use in OpenResty in pure Lua using the cosocket api. You can find it here: https://github.com/leafo/pgmoon

You can read the documentation and example here: https://github.com/leafo/pgmoon#example

You can install it with luarocks:

luarocks install --server=http://rocks.moonscript.org pgmoon


I am aware of the other project, https://github.com/azurewang/lua-resty-postgres There is some missing functionality in it and I originally started writing my own to learn more about the protocol to contribute but it turned out simple enough and I just implemented everything I needed. I also had the additional requirement for running the library outside of openresty which I've also implemented. 

The project is fully tested and I'm running it on all of my projects now in production and it works great.

Thanks for checking it out

Bertrand Mansion

unread,
May 31, 2014, 1:26:01 PM5/31/14
to openre...@googlegroups.com
Thanks !


--
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anton Heryanto

unread,
Jun 1, 2014, 2:57:21 AM6/1/14
to openre...@googlegroups.com
Hello,

Wow that awesome..

thank you for your contribution..

have you do benchmark to compare performance between ngx_postgres with pgmoon?

and still waiting for openresty package manager.. so every known library could be easy to manage

Jerome Lafon

unread,
Jun 2, 2014, 6:38:27 AM6/2/14
to openre...@googlegroups.com
Thank you for the contribution.

I currently use lua-resty-postgres.
Can you explain what are the new features compared to lua-resty-postgres?
What about the performance compared to lua-resty-postgres?

Jérôme
Reply all
Reply to author
Forward
0 new messages