63f1287074
Correcoes nas referencias dos indices.
175 lines
5.1 KiB
HTML
175 lines
5.1 KiB
HTML
<html>
|
||
<!$Id: index.html,v 1.11 2003/10/24 10:58:18 tomas Exp $>
|
||
|
||
<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> ·
|
||
<a href=#download>download</a> ·
|
||
<a href=#new>what's new</a> ·
|
||
<a href=#installation>installation</a> ·
|
||
<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>
|
||
<li> <a href=#version>Current Version</a>
|
||
<li> <a href=#download>Download</a>
|
||
<li> <a href=#new>What's new</a>
|
||
<li> <a href=#installation>Installation</a>
|
||
<li> <a href="manual.html">User's manual</a>
|
||
<ul>
|
||
<li> <a href="manual.html#introduction">Introduction</a>
|
||
<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>
|
||
<li> <a href="manual.html#postgres_extensions">PostgreSQL extensions</a>
|
||
<li> <a href="manual.html#mysql_extensions">MySQL extensions</a>
|
||
<li> <a href="manual.html#oracle_extensions">Oracle extensions</a>
|
||
<li> <a href="manual.html#examples">Examples</a>
|
||
</ul>
|
||
<li> <a href=#hist>History</a>
|
||
</ul>
|
||
</p>
|
||
|
||
|
||
<a name=over>
|
||
<h2>Overview</h2>
|
||
<p>
|
||
LuaSQL is a simple interface from Lua to a DBMS.
|
||
It enables a Lua program to:
|
||
<ul>
|
||
<li> Connect to ODBC, Oracle, MySQL and PostgreSQL databases;
|
||
<li> Execute arbitrary SQL statements;
|
||
<li> Retrieve results in a row-by-row cursor fashion.
|
||
</ul>
|
||
|
||
|
||
<a name=version>
|
||
<h2>Current version</h2>
|
||
<p>
|
||
LuaSQL version 2.0 alpha (for Lua 5.0) is now available for
|
||
<a href="#download">download</a>!
|
||
The PostgreSQL driver
|
||
has been tested on Linux and MacOS X,
|
||
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.
|
||
</p>
|
||
|
||
|
||
<a name=download>
|
||
<h2>Download</h2>
|
||
|
||
LuaSQL can be downloaded in source code from the following links: <p>
|
||
|
||
<blockquote>
|
||
<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>
|
||
</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
|
||
<li>New drivers for Oracle and MySQL databases
|
||
</ul>
|
||
</p>
|
||
|
||
|
||
<a name="installation"></a>
|
||
<h2>Installation</h2>
|
||
|
||
<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>
|
||
|
||
<h4>LuaSQL 2.0</h4>
|
||
<p>
|
||
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
|
||
Tomás Guisasola and Eduardo Quintão.
|
||
|
||
<h4>LuaSQL 1.0</h4>
|
||
<p>
|
||
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).
|
||
<p>
|
||
LuaSQL development was sponsored by
|
||
<a href="http://www.fabricadigital.com.br">F<EFBFBD>brica Digital</a>.
|
||
|
||
<p>
|
||
<center><small>
|
||
<a href=#over>overview</a> ·
|
||
<a href=#version>current version</a> ·
|
||
<a href=#download>download</a> ·
|
||
<a href=#new>what's new</a> ·
|
||
<a href=#installation>installation</a> ·
|
||
<a href="manual.html">manual</a> ·
|
||
<a href=#hist>history</a>
|
||
</small></center>
|
||
<p>
|
||
|
||
<hr>
|
||
<small>
|
||
Last modified on
|
||
Fri Sep 12 18:28:04 BRT 2003
|
||
</small>
|
||
|
||
</body>
|
||
</html>
|