![]() |
LuaSQL |
Database connectivity for the Lua programming language |
LuaSQL is a simple interface from Lua to a DBMS. It enables a Lua program to:
LuaSQL version 2.0 beta 2 (for Lua 5.0) is now available for download. The PostgreSQL driver has been tested on Linux and MacOS X and is compatible with PostgreSQL 7.x. The ODBC driver has been tested on Windows (SQLServer and Microsoft Access drivers). The MySQL driver has been tested on Linux and is compatible with versions 4.0 and 4.1. The Oracle driver has been tested on Windows and is compatible with OCI 8 API. The SQLite driver had been tested on Linux and are compatible with versions 2.x. The JDBC driver has been tested with LuaJava Beta 3 and JDK 1.4 (MySQL driver).
luasql-2.0b2.tar.gz
luasql-2.0b2.zip
Version 2.0 beta 2 has some bug fixes and the new SQLite and JDBC drivers.
Also, it follows the
package proposal
for Lua 5.1
(see section Installation for more details).
Version 2.0 has some design modifications and implementation improvements
What's new
LuaSQL is distributed as a set of C source files: a common source and header file (luasql.h and luasql.c); and one source file for each driver. Each driver should be compiled together with luasql.c file (it is so small that we don't make another library of it) to generate a library. This library could be linked to the application (the initialization function is luaopen_luasqldrivername and it is a Lua open-library compatible function) or dynamically loaded.
All LuaSQL drivers follow the package proposal for Lua 5.1, therefore this package should be "installed". In other words, if you are using Lua 5.0, the files compat-5.1.c and compat-5.1.h must be used in the compilation and the file compat-5.1.lua must be installed in the LUA_PATH. If you are using Lua 5.1, nothing should be done.
In order to use LuaSQL over JDBC, make sure that:Version 2.0 was redesigned by Roberto Ierusalimschy, André Carregal and Tomás Guisasola as part of the Kepler Project. The implementation is compatible with Lua 5.0 and was coded by Tomás Guisasola, Eduardo Quintão and Thiago Ponte, with many invaluable contributions by Michael Roth, Tiago Dionisio, Leonardo Godinho and Danilo Tuler.
LuaSQL was designed by Pedro Miller Rabinovitch and Roberto Ierusalimschy. The first implementation was compatible with Lua 4.0a. Many modifications were made but not distributed by Diego Nehab (ODBC), Carlos Cassino, Tomás Guisasola and Eduardo Quintão (PostgreSQL).
LuaSQL development was sponsored by Fábrica Digital.
For more information please contact us. Comments are welcome!