lua-users home
lua-l archive

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


Marcelo Araujo wrote:

Is there a sqlite driver for LuaSQL?

http://www.keplerproject.org/luasql/ says:

LuaSQL version 2.0.2 (for Lua 5.0) is now available for
download.

The SQLite driver has been tested on Windows and Linux and
is compatible with versions 2.x.

D:\Program Files\Kepler>lua50
Lua 5.0.2  Copyright (C) 1994-2004 Tecgraf, PUC-Rio
require("luasql.sqlite")
EnvHnd = luasql.sqlite()
ConnHnd = EnvHnd:connect("foo")
Cursor = ConnHnd:execute("SELECT 2 + 2")
=Cursor:fetch()
4

Is this what you're looking for?

--
Aaron
http://arundelo.com/