2003-04-28 09:45:14 +00:00
|
|
|
|
<html>
|
2003-10-24 10:58:18 +00:00
|
|
|
|
<!$Id: index.html,v 1.11 2003/10/24 10:58:18 tomas Exp $>
|
2003-04-28 09:45:14 +00:00
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
ul { list-style-type: disc };
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body bgcolor="#FFFFFF">
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
<center>
|
|
|
|
|
<table border=0 cellspacing=2 cellpadding=2>
|
|
|
|
|
<tr><td align=center><a href="http://www.lua.org">
|
|
|
|
|
<img border=0 alt="The Lua language" src="lua.png"></a>
|
|
|
|
|
<tr><td align=center><big><b>LuaSQL</b></big>
|
|
|
|
|
<tr><td align=center valign=top>Database connectivity for the Lua language
|
|
|
|
|
</table>
|
|
|
|
|
</center>
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
|
|
<center><small>
|
|
|
|
|
<a href=#over>overview</a> ·
|
|
|
|
|
<a href=#version>current version</a> ·
|
2003-04-30 16:33:57 +00:00
|
|
|
|
<a href=#download>download</a> ·
|
2003-04-28 16:02:58 +00:00
|
|
|
|
<a href=#new>what's new</a> ·
|
2003-05-07 06:20:50 +00:00
|
|
|
|
<a href=#installation>installation</a> ·
|
2003-04-28 09:45:14 +00:00
|
|
|
|
<a href="manual.html">manual</a> ·
|
|
|
|
|
<a href=#hist>history</a>
|
|
|
|
|
</small></center>
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
<h2>Contents</h2>
|
|
|
|
|
<p>
|
|
|
|
|
<ul>
|
|
|
|
|
<li> <a href=#over>Overview</a>
|
2003-05-07 06:20:50 +00:00
|
|
|
|
<li> <a href=#version>Current Version</a>
|
2003-04-30 16:33:57 +00:00
|
|
|
|
<li> <a href=#download>Download</a>
|
2003-05-07 06:20:50 +00:00
|
|
|
|
<li> <a href=#new>What's new</a>
|
|
|
|
|
<li> <a href=#installation>Installation</a>
|
2003-04-28 09:45:14 +00:00
|
|
|
|
<li> <a href="manual.html">User's manual</a>
|
|
|
|
|
<ul>
|
2003-05-07 06:20:50 +00:00
|
|
|
|
<li> <a href="manual.html#introduction">Introduction</a>
|
2003-05-02 15:16:15 +00:00
|
|
|
|
<li> <a href="manual.html#environment_object">Environment objects</a>
|
|
|
|
|
<li> <a href="manual.html#connection_object">Connection objects</a>
|
|
|
|
|
<li> <a href="manual.html#cursor_object">Cursor objects</a>
|
2003-05-07 06:20:50 +00:00
|
|
|
|
<li> <a href="manual.html#postgres_extensions">PostgreSQL extensions</a>
|
2003-07-23 18:26:26 +00:00
|
|
|
|
<li> <a href="manual.html#mysql_extensions">MySQL extensions</a>
|
2003-10-24 10:58:18 +00:00
|
|
|
|
<li> <a href="manual.html#oracle_extensions">Oracle extensions</a>
|
2003-05-02 10:51:33 +00:00
|
|
|
|
<li> <a href="manual.html#examples">Examples</a>
|
2003-04-28 09:45:14 +00:00
|
|
|
|
</ul>
|
|
|
|
|
<li> <a href=#hist>History</a>
|
|
|
|
|
</ul>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name=over>
|
|
|
|
|
<h2>Overview</h2>
|
|
|
|
|
<p>
|
2003-04-30 16:33:57 +00:00
|
|
|
|
LuaSQL is a simple interface from Lua to a DBMS.
|
|
|
|
|
It enables a Lua program to:
|
2003-04-28 09:45:14 +00:00
|
|
|
|
<ul>
|
2003-07-23 18:26:26 +00:00
|
|
|
|
<li> Connect to ODBC, Oracle, MySQL and PostgreSQL databases;
|
2003-04-28 09:45:14 +00:00
|
|
|
|
<li> Execute arbitrary SQL statements;
|
|
|
|
|
<li> Retrieve results in a row-by-row cursor fashion.
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name=version>
|
|
|
|
|
<h2>Current version</h2>
|
|
|
|
|
<p>
|
2003-05-07 06:20:50 +00:00
|
|
|
|
LuaSQL version 2.0 alpha (for Lua 5.0) is now available for
|
2003-04-30 16:33:57 +00:00
|
|
|
|
<a href="#download">download</a>!
|
2003-04-28 09:45:14 +00:00
|
|
|
|
The PostgreSQL driver
|
|
|
|
|
has been tested on Linux and MacOS X,
|
2003-09-12 18:48:55 +00:00
|
|
|
|
the ODBC driver has been tested on Windows
|
|
|
|
|
(SQLServer and Microsoft Access drivers),
|
|
|
|
|
the MySQL driver has been tested on Linux
|
|
|
|
|
and the Oracle driver on Windows.
|
2003-04-28 09:45:14 +00:00
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
2003-04-30 16:33:57 +00:00
|
|
|
|
<a name=download>
|
2003-04-28 09:45:14 +00:00
|
|
|
|
<h2>Download</h2>
|
|
|
|
|
|
|
|
|
|
LuaSQL can be downloaded in source code from the following links: <p>
|
|
|
|
|
|
|
|
|
|
<blockquote>
|
2003-05-07 06:20:50 +00:00
|
|
|
|
<a href="http://poison.les.inf.puc-rio.br/luasql/luasql-2.0a.tar.gz">luasql-2.0a.tar.gz</a><br>
|
|
|
|
|
<a href="http://poison.les.inf.puc-rio.br/luasql/luasql-2.0a.zip">luasql-2.0a.zip</a>
|
2003-04-28 09:45:14 +00:00
|
|
|
|
</blockquote><p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name=new>
|
|
|
|
|
<h2>What's new</h2>
|
|
|
|
|
<p>
|
|
|
|
|
Version 2.0 has some design modifications and implementation improvements
|
|
|
|
|
<ul>
|
|
|
|
|
<li>New <tt>fetch</tt> method: more eficient and more flexible
|
|
|
|
|
<li>New <tt>setautocommit</tt> method
|
|
|
|
|
<li>Lua 5.0 compatible
|
|
|
|
|
<li>Dynamically loadable or statically linked
|
2003-09-12 18:48:55 +00:00
|
|
|
|
<li>New drivers for Oracle and MySQL databases
|
2003-04-28 09:45:14 +00:00
|
|
|
|
</ul>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
2003-05-07 06:20:50 +00:00
|
|
|
|
<a name="installation"></a>
|
|
|
|
|
<h2>Installation</h2>
|
2003-04-28 09:45:14 +00:00
|
|
|
|
|
2003-05-07 06:20:50 +00:00
|
|
|
|
<p>
|
|
|
|
|
LuaSQL is distributed as a set of C source files and a Lua script that
|
|
|
|
|
loads the dynamic library (if the library is not statically linked to
|
|
|
|
|
the application).
|
|
|
|
|
Each driver should be compiled within the luasql.c file (it's so small
|
|
|
|
|
that we don't make another library of it) to generate a library.
|
|
|
|
|
This library should be linked to the application (the initialization
|
|
|
|
|
function is <tt>luasql_libopen_<i>drivername</i></tt> and it's a Lua
|
|
|
|
|
open-library compatible function)
|
|
|
|
|
or dynamically loaded.
|
|
|
|
|
In this case, LuaSQL provide a Lua script template that must be
|
|
|
|
|
edited to suit the installation: the text <tt>LIB_NAME</tt> (in the line
|
|
|
|
|
<tt>local libname = "LIB_NAME"</tt>) should be substituted by the
|
|
|
|
|
complete path of the dynamic library (or relative to the current directory,
|
|
|
|
|
but that's not safe).
|
|
|
|
|
The distribution contains a Makefile that has lines to do this job,
|
|
|
|
|
using <tt>sed</tt>, according to each driver and platform.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name=hist>
|
|
|
|
|
<h2>History</h2>
|
2003-04-28 09:45:14 +00:00
|
|
|
|
|
2003-05-08 22:49:45 +00:00
|
|
|
|
<h4>LuaSQL 2.0</h4>
|
2003-05-07 06:20:50 +00:00
|
|
|
|
<p>
|
2003-05-08 22:49:45 +00:00
|
|
|
|
Version 2.0 was redesigned by Roberto Ierusalimschy, André Carregal
|
|
|
|
|
and Tomás Guisasola behind the Kepler Project.
|
|
|
|
|
The implementation is compatible with Lua 5.0 and was coded by
|
2003-07-23 18:26:26 +00:00
|
|
|
|
Tomás Guisasola and Eduardo Quintão.
|
2003-05-08 22:49:45 +00:00
|
|
|
|
|
|
|
|
|
<h4>LuaSQL 1.0</h4>
|
|
|
|
|
<p>
|
|
|
|
|
LuaSQL was designed by Pedro Miller Rabinovitch and Roberto
|
|
|
|
|
Ierusalimschy.
|
2003-05-07 06:20:50 +00:00
|
|
|
|
The first implementation was compatible with Lua 4.0a.
|
|
|
|
|
Many modifications were made but not distributed by Diego Nehab (ODBC),
|
2003-05-08 22:49:45 +00:00
|
|
|
|
Carlos Cassino, Tomás Guisasola and Eduardo Quintão (PostgreSQL).
|
2003-05-07 06:20:50 +00:00
|
|
|
|
<p>
|
2003-05-08 22:49:45 +00:00
|
|
|
|
LuaSQL development was sponsored by
|
|
|
|
|
<a href="http://www.fabricadigital.com.br">F<EFBFBD>brica Digital</a>.
|
2003-04-28 09:45:14 +00:00
|
|
|
|
|
|
|
|
|
<p>
|
2003-04-28 16:02:58 +00:00
|
|
|
|
<center><small>
|
2003-04-28 09:45:14 +00:00
|
|
|
|
<a href=#over>overview</a> ·
|
2003-04-28 16:02:58 +00:00
|
|
|
|
<a href=#version>current version</a> ·
|
2003-04-30 16:33:57 +00:00
|
|
|
|
<a href=#download>download</a> ·
|
2003-04-28 16:02:58 +00:00
|
|
|
|
<a href=#new>what's new</a> ·
|
2003-05-07 06:20:50 +00:00
|
|
|
|
<a href=#installation>installation</a> ·
|
2003-04-28 16:02:58 +00:00
|
|
|
|
<a href="manual.html">manual</a> ·
|
2003-04-28 09:45:14 +00:00
|
|
|
|
<a href=#hist>history</a>
|
2003-04-28 16:02:58 +00:00
|
|
|
|
</small></center>
|
2003-04-28 09:45:14 +00:00
|
|
|
|
<p>
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
<small>
|
2003-05-08 22:49:45 +00:00
|
|
|
|
Last modified on
|
2003-09-12 18:48:55 +00:00
|
|
|
|
Fri Sep 12 18:28:04 BRT 2003
|
2003-04-28 09:45:14 +00:00
|
|
|
|
</small>
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|