|
--************* Requires *************
require "luasql.sqlite3"
--************* Initial Code *************
--package db
db = {}
--create environment object
local _DB_env = luasql.sqlite3()
local _DB_con = nil
--************* Functions *************
--Connect to the given DB.
function db.connect (dbname)
_DB_con = _DB_env:connect(dbname)
end
On Wed, Feb 3, 2010 at 9:54 AM, Florian Weimer <fw@deneb.enyo.de> wrote:There's also LuaDBI, which does support them. Not much documentation,
> LuaSQL should really, really support parametrized queries, though, but
> currently, it doesn't. 8-(
but easy to figure out.