{"repo":"leafo/pgmoon","free":true,"listed":false,"github":"https://github.com/leafo/pgmoon","clone":"git clone https://github.com/leafo/pgmoon.git","description":"A pure Lua Postgres driver for use in OpenResty & more","language":"MoonScript","stars":432,"topics":["lua","postgres","moonscript","cqueues","openresty","luasocket","postgresql"],"license":"MIT","category":"databases-storage","readme_excerpt":"pgmoon pgmoon is a PostgreSQL client library written in pure Lua (MoonScript). pgmoon was originally designed for use in [OpenResty][] to take advantage of the cosocket api to provide asynchronous queries but it also works in any regular Lua environment where [LuaSocket][], [cqueues][], or [LuaPosix][] is available. It's a perfect candidate for running your queries both inside OpenResty's environment and on the command line (eg. tests) in web frameworks like [Lapis][]. Install Using OpenResty's OPM Dependencies pgmoon supports a wide range of environments and libraries, so it may be necessary to install additional dependencies depending on how you intend to communicate with the database: Tip: If you're using OpenResty then no additional dependencies are needed (generally, a crypto library may be necessary for some authentication methods) A socket implementation is required to use pgmoon, depending on the environment you can choose one: [OpenResty][] &mdash; The built-in socket is used, no additional dependencies necessary [LuaSocket][] &mdash; luarocks install luasocket [cqueues][] &mdash; luarocks install cqueues [LuaPosix][] &mdash; luarocks install luaposix (Unix sockets only via socket path ) If you're on PUC Lua 5.1 or 5.2 then you will need a bit library (not needed for LuaJIT): If you want to use JSON types you will need lua-cjson SSL connections may require an additional dependency: OpenResty &mdash; luarocks install lua-resty-openssl LuaSocket &mdash; luarocks instal","default_branch":null,"files":null,"tree":[],"storefront":"/r/leafo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leafo/pgmoon/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}