lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Marc,

> The PostgreSQL Lua binding found on https://github.com/mbalmer/luapgsql
> has been extended to make it a bit easier to create SQL commands
> dynamically and still be able to use execParams().
<snip>

I don't know if you've checked luapsql before,

https://code.google.com/p/luapsql

but it has prepared and parametrizable statements since its first release;
it's a fairly complete binding of libpq, but it might be outdated. However,
since these bindings are low-level, I haven't included any documentation since
you can check libpq's docs directly instead. In any case, you can take a look
at the code and examples to see how it works; for instance, there are
facilities for registered types that you might want to include in your set of
bindings.

Cheers,
Luis

-- 
Computers are useless. They can only give you answers.
                -- Pablo Picasso

-- 
Luis Carvalho (Kozure)
lua -e 'print((("lexcarvalho@NO.gmail.SPAM.com"):gsub("(%u+%.)","")))'