And by "native" Ryan means native to luvit's ecosystem. It's just part of the postgresql wire protocol implemented using pure lua.
I believe the cqueues based library can be used with luvit as well since the cqueue event loop can integrate with luvit's. On Mon, Apr 4, 2016 at 8:27 AM, Ryan Phillips <[email protected]> wrote: > Abdul, > > Tim has also developed a new native luvi postgres driver located here [1] > if you are looking for a native postgres client. I am not sure how you > would integrate into PL/Lua. > > -Ryan > > [1] https://github.com/creationix/lua-postgres > > On Mon, Apr 4, 2016 at 7:38 AM, Daurnimator <[email protected]> wrote: > >> >> On 4 Apr 2016 10:20 pm, "Abdul Hakeem" <[email protected]> wrote: >> > >> > Hello Experts, >> > Can anyone recommend how to run Luvit codes within Postgres via PL/Lua, >> similar to running NodeJS codes within Postgres via PgREST. >> > What I am looking to achieve is to access PG triggers and functions >> and also possibly call them via REST/Websockets. >> > Cheers, >> > AH >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "luvit" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to [email protected]. >> > For more options, visit https://groups.google.com/d/optout. >> >> Pl /lua and pgrest do entirely different things. >> Pl/lua let's you run lua **inside** of postgres for use in triggers etc. >> Pgrest exposes a mongo-like http api that's backed by a postgres database. >> >> What you probably want is a postgres client. >> Look for luapgsql, cqueues-pgsql is be a non-blocking variant; or pgmoon. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "luvit" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "luvit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "luvit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
