mudancas pro driver JDBC
This commit is contained in:
parent
c6f486067d
commit
d0d863cb0d
15
index.html
15
index.html
@ -56,7 +56,6 @@ programming language
|
||||
<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#jdbc_extensions">JDBC extensions</a>
|
||||
<li> <a href="manual.html#examples">Examples</a>
|
||||
</ul>
|
||||
<li> <a href="license.html">Copyright & License</a>
|
||||
@ -165,6 +164,14 @@ in the compilation and the file <tt>compat-5.1.lua</tt> must be installed
|
||||
in the <tt>LUA_PATH</tt>.
|
||||
If you are using Lua 5.1,
|
||||
nothing should be done.
|
||||
</p>
|
||||
|
||||
In order to use LuaSQL over JDBC, make sure that:
|
||||
<ul>
|
||||
<li> Lua is running with <a href="http://www.keplerproject.org/luajava">LuaJava</a>
|
||||
<li> LuaSQL jar is in the Java's virtual machine classpath
|
||||
<li> JDBC driver of the desired database is also in the virtual machine classpath
|
||||
</ul>
|
||||
|
||||
|
||||
<a name="credits">
|
||||
@ -176,9 +183,9 @@ Version 2.0 was redesigned by Roberto Ierusalimschy, André Carregal
|
||||
and Tomás Guisasola as part of the
|
||||
<a href="http://www.keplerproject.org">Kepler Project</a>.
|
||||
The implementation is compatible with Lua 5.0 and was coded by
|
||||
Tomás Guisasola, Eduardo Quintão and Danilo Tuler,
|
||||
Tomás Guisasola, Eduardo Quintão and Thiago Ponte,
|
||||
with many invaluable contributions by Michael Roth, Tiago Dionisio,
|
||||
and Leonardo Godinho.
|
||||
Leonardo Godinho and Danilo Tuler.
|
||||
|
||||
<h4>LuaSQL 1.0</h4>
|
||||
<p>
|
||||
@ -218,7 +225,7 @@ Comments are welcome!
|
||||
|
||||
<hr>
|
||||
<small>
|
||||
$Id: index.html,v 1.28 2004/11/17 16:58:40 tuler Exp $
|
||||
$Id: index.html,v 1.29 2004/11/18 10:56:00 tuler Exp $
|
||||
</small>
|
||||
|
||||
</body>
|
||||
|
35
manual.html
35
manual.html
@ -100,8 +100,14 @@ For example,
|
||||
<pre>
|
||||
env = luasql.odbc()
|
||||
</pre>
|
||||
will try to create an environment
|
||||
object using the ODBC driver.
|
||||
will try to create an environment object using the ODBC driver.
|
||||
JDBC must know which driver to use, therefore when creating an environment,
|
||||
the driver class name must be passed as the first parameter to the function
|
||||
<code>luasql.jdbc</code>.
|
||||
For example:
|
||||
<pre>
|
||||
env = luasql.jdbc ("com.mysql.jdbc.Driver")
|
||||
</pre>
|
||||
</p>
|
||||
|
||||
<h4>Methods</h4>
|
||||
@ -312,28 +318,6 @@ this extra feature:
|
||||
Returns: the number of rows in the query result.
|
||||
</ul>
|
||||
|
||||
<a name="jdbc_extensions"></a>
|
||||
<h2>JDBC extensions</h2>
|
||||
<p>
|
||||
LuaSQL offers a way to use LuaSQL interface running over Java's JDBC.
|
||||
In order to do that, make sure that:
|
||||
<ul>
|
||||
<li> Lua is running with <a href="http://www.keplerproject.org/luajava">LuaJava</a>
|
||||
<li> LuaSQL driver for JDBC is in the Java's virtual machine classpath
|
||||
<li> JDBC driver is also in the virtual machine classpath
|
||||
</ul>
|
||||
JDBC must know which driver to use, therefore when creating an environment,
|
||||
the driver class name must be passed as the first parameter of the function
|
||||
<code>luasql.jdbc</code>.
|
||||
For example:
|
||||
|
||||
<code>
|
||||
<pre>
|
||||
env = luasql.jdbc ("com.mysql.jdbc.Driver")
|
||||
</pre>
|
||||
</code>
|
||||
|
||||
|
||||
<a name="examples"></a>
|
||||
<h2>Example</h2>
|
||||
|
||||
@ -421,7 +405,6 @@ Name: Maria das Dores, E-mail: maria@dores.com
|
||||
<li> <a href="#postgres_extensions">PostgreSQL extensions</a>
|
||||
<li> <a href="#mysql_extensions">MySQL extensions</a>
|
||||
<li> <a href="#oracle_extensions">Oracle extensions</a>
|
||||
<li> <a href="#jdbc_extensions">JDBC extensions</a>
|
||||
<li> <a href="#examples">Example</a>
|
||||
</ul>
|
||||
</p>
|
||||
@ -440,7 +423,7 @@ Name: Maria das Dores, E-mail: maria@dores.com
|
||||
|
||||
<hr>
|
||||
<small>
|
||||
$Id: manual.html,v 1.24 2004/11/17 16:58:40 tuler Exp $
|
||||
$Id: manual.html,v 1.25 2004/11/18 10:56:00 tuler Exp $
|
||||
</small>
|
||||
|
||||
</body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user