185 lines
5.4 KiB
HTML
185 lines
5.4 KiB
HTML
<! See Copyright Notice in license.html>
|
||
<html>
|
||
|
||
<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>news</a> ·
|
||
<a href=#installation>installation</a> ·
|
||
<a href="manual.html">manual</a> ·
|
||
<a href="license.html">license</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="license.html">Copyright & License</a>
|
||
<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>
|
||
|
||
LuaSQL is <a href="license.html">free software</a>.
|
||
|
||
|
||
<a name=version>
|
||
<h2>Current version</h2>
|
||
<p>
|
||
LuaSQL version 2.0 beta (for Lua 5.0) is now available for
|
||
<a href="#download">download</a>!
|
||
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 version 4.1.
|
||
The Oracle driver has been tested on Windows
|
||
and is compatible with OCI 8 API.
|
||
</p>
|
||
|
||
|
||
<a name=download>
|
||
<h2>Download</h2>
|
||
|
||
LuaSQL can be downloaded in source code from the following links: <p>
|
||
|
||
<blockquote>
|
||
<a href="luasql-2.0b.tar.gz">luasql-2.0b.tar.gz</a><br>
|
||
<a href="luasql-2.0b.zip">luasql-2.0b.zip</a>
|
||
</blockquote><p>
|
||
|
||
|
||
<a name=new>
|
||
<h2>What's new</h2>
|
||
<p>
|
||
<ul>
|
||
<li>[10/dec/2003] Version 2.0 beta released
|
||
</ul>
|
||
<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 together with 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.
|
||
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, Eduardo Quintão and Leonardo Godinho.
|
||
|
||
<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="license.html">license</a> ·
|
||
<a href=#hist>history</a>
|
||
</small></center>
|
||
<p>
|
||
|
||
<hr>
|
||
<small>
|
||
$Id: index.html,v 1.17 2003/12/10 17:43:14 tomas Exp $
|
||
</small>
|
||
|
||
</body>
|
||
</html>
|