Remove trailing spaces from documentation
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
This commit is contained in:
parent
061e8afb62
commit
859aeb8237
4
README
4
README
@ -3,11 +3,11 @@ http://keplerproject.github.io/luasql
|
||||
|
||||
LuaSQL is a simple interface from Lua to a DBMS. It enables a Lua program to:
|
||||
|
||||
* Connect to ODBC, ADO, Oracle, MySQL, SQLite, Firebird and PostgreSQL databases;
|
||||
* Connect to ODBC, ADO, Oracle, MySQL, SQLite, Firebird and PostgreSQL databases;
|
||||
* Execute arbitrary SQL statements;
|
||||
* Retrieve results in a row-by-row cursor fashion.
|
||||
|
||||
LuaSQL is free software and uses the same license as Lua 5.1.
|
||||
LuaSQL is free software and uses the same license as Lua 5.1.
|
||||
|
||||
|
||||
Source code for LuaSQL can be downloaded from its GitHub repository.
|
||||
|
@ -53,7 +53,7 @@
|
||||
<li><a href="http://github.com/keplerproject/luasql">Projeto</a>
|
||||
<ul>
|
||||
<li><a href="http://github.com/keplerproject/luasql/issues">Bug Tracker</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="license.html">Licença</a></li>
|
||||
@ -65,7 +65,7 @@
|
||||
<h2><a name="examples"></a>Exemplos</h2>
|
||||
|
||||
<p>Abaixo, você verá um pequeno exemplo do código do uso básico da biblioteca.
|
||||
Em seguida, outro exemplo mostra como criar um
|
||||
Em seguida, outro exemplo mostra como criar um
|
||||
<a href="#iterator_example">iterador</a> sobre o resultado de uma determinada consulta.</p>
|
||||
|
||||
|
||||
@ -134,7 +134,7 @@ end
|
||||
</pre>
|
||||
|
||||
<p>Esse iterador é usado da seguinte forma:</p>
|
||||
|
||||
|
||||
<pre class="example">
|
||||
require "luasql.mysql"
|
||||
env = assert (luasql.mysql())
|
||||
|
@ -54,7 +54,7 @@
|
||||
<li><a href="http://github.com/keplerproject/luasql">Projeto</a>
|
||||
<ul>
|
||||
<li><a href="http://github.com/keplerproject/luasql/issues">Bug Tracker</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="license.html">Licença</a></li>
|
||||
@ -75,24 +75,24 @@
|
||||
Testes melhorados.<br />
|
||||
Documentação melhorada.<br />
|
||||
</dd>
|
||||
|
||||
|
||||
<dt><strong>2.0.1</strong> [02/06/2005]</dt>
|
||||
<dd>Corrigiu alguns erros relativos ao driver ODBC.</dd>
|
||||
|
||||
|
||||
<dt><strong>2.0.0</strong> [22/03/2005]</dt>
|
||||
<dd>Novo driver ADO e corrigiu alguns erros relativos ao driver ODBC.</dd>
|
||||
|
||||
|
||||
<dt><strong>2.0 beta 3</strong> [23/12/2004]</dt>
|
||||
<dd>Corrigiu apenas alguns pequenos erros.</dd>
|
||||
|
||||
|
||||
<dt><strong>2.0 beta 2</strong> [26/11/2004]</dt>
|
||||
<dd>Corrigiu alguns erros e introduziu os novos drivers SQLite and JDBC.
|
||||
Utiliza a
|
||||
Utiliza a
|
||||
<a href="http://www.keplerproject.org/compat/">proposta de pacotes</a>
|
||||
para Lua 5.1. Veja mais detalhes em
|
||||
<a href="manual.html#installation">Instalação</a>.
|
||||
</dd>
|
||||
|
||||
|
||||
<dt><strong>2.0 beta</strong> [10/12/2003]</dt>
|
||||
</dl>
|
||||
|
||||
|
@ -87,7 +87,7 @@ PostgreSQL 7.x e 8.x.</p>
|
||||
<p>O driver MySQL foi testado em Windows, Linux e é compatível com as versões 4.0, 4.1 e 5.0.</p>
|
||||
<p>O driver Oracle foi testado em Windows e é compatível com OCI 8 API.</p>
|
||||
<p>O driver SQLite foi testado em Windows e Linux e é compatível com as versões 2.x.</p>
|
||||
<p>O driver JDBC foi testado em Windows com LuaJava 1.0 e JDK 1.4 (driver MySQL).</p>
|
||||
<p>O driver JDBC foi testado em Windows com LuaJava 1.0 e JDK 1.4 (driver MySQL).</p>
|
||||
<p>O driver ADO foi testado em Windows, com LuaCOM 1.3 (driver Microsoft Access).</p>
|
||||
|
||||
<h2><a name="download"></a>Download</h2>
|
||||
@ -114,7 +114,7 @@ O código fonte do LuaSQL pode ser baixado do seu repositório no <a href=
|
||||
A Versão 2.0 foi redesenhada por Roberto Ierusalimschy, André Carregal
|
||||
e Tomás Guisasola como parte do
|
||||
<a href="http://www.keplerproject.org">Projeto Kepler</a>.
|
||||
A implementação é compatível com Lua 5.0 e foi codificada por Tomás Guisasola, Eduardo Quintão, Thiago Ponte, Fabio Mascarenhas, Danilo Tuler,
|
||||
A implementação é compatível com Lua 5.0 e foi codificada por Tomás Guisasola, Eduardo Quintão, Thiago Ponte, Fabio Mascarenhas, Danilo Tuler,
|
||||
com inestimáveis contribuições de Michael Roth, Tiago Dionizio e Leonardo Godinho.
|
||||
</p>
|
||||
|
||||
@ -127,7 +127,7 @@ Muitas modificações foram feitas, mas não distribuíd
|
||||
Carlos Cassino, Tomás Guisasola and Eduardo Quintão (PostgreSQL).
|
||||
</p>
|
||||
<p>
|
||||
O desenvolvimento de LuaSQL foi patrocinado pela
|
||||
O desenvolvimento de LuaSQL foi patrocinado pela
|
||||
<a href="http://www.fabricadigital.com.br">Fábrica Digital</a>, FINEP e CNPq.
|
||||
</p>
|
||||
|
||||
|
@ -53,7 +53,7 @@
|
||||
<li><a href="http://github.com/keplerproject/luasql">Projeto</a>
|
||||
<ul>
|
||||
<li><a href="http://github.com/keplerproject/luasql/issues">Bug Tracker</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li><strong>Licença</strong></li>
|
||||
|
@ -53,7 +53,7 @@
|
||||
<li><a href="http://github.com/keplerproject/luasql">Projeto</a>
|
||||
<ul>
|
||||
<li><a href="http://github.com/keplerproject/luasql/issues">Bug Tracker</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="license.html">Licença</a></li>
|
||||
@ -85,16 +85,16 @@ A conexão pode executar comandos SQL e, eventualmente, criar um
|
||||
um arquivo fonte e um arquivo cabeçalho comuns a todos os drivers
|
||||
(<code>luasql.h</code> e <code>luasql.c</code>) – e um arquivo fonte para cada driver.
|
||||
Cada driver deve ser compilado juntamente com o arquivo <code>luasql.c</code>
|
||||
para gerar uma biblioteca. Essa biblioteca pode ser linkada à aplicação
|
||||
para gerar uma biblioteca. Essa biblioteca pode ser linkada à aplicação
|
||||
ou carregada dinamicamente. A função de inicialização é
|
||||
<code>luaopen_luasql<em>nomedriver</em></code> e é compatível com o formato
|
||||
<code>luaopen_luasql<em>nomedriver</em></code> e é compatível com o formato
|
||||
<a href="http://www.lua.org/manual/5.1/manual.html#pdf-require"><code>open-library</code></a> de Lua.</p>
|
||||
|
||||
<h2><a name="installation"></a>Instalação</h2>
|
||||
|
||||
<p>Todos os drivers LuaSQL seguem a
|
||||
<p>Todos os drivers LuaSQL seguem a
|
||||
<a href="http://www.keplerproject.org/compat">proposta de pacotes</a>
|
||||
para Lua 5.1. Logo, esse pacote deve ser "instalado". Consulte a seção de
|
||||
para Lua 5.1. Logo, esse pacote deve ser "instalado". Consulte a seção de
|
||||
<a href="http://www.keplerproject.org/compat/manual.html#configuration">
|
||||
configuração do Compat-5.1</a> para saber como instalar os pacotes binários
|
||||
da maneira correta.
|
||||
@ -193,7 +193,7 @@ env = luasql.jdbc ("com.mysql.jdbc.Driver")
|
||||
</dd>
|
||||
|
||||
<dt><a name="env_connect"></a><strong><code>env:connect(sourcename[,username[,password]])</code></strong></dt>
|
||||
<dd>Conecta à fonte de dados especificada em <code>sourcename</code> usando
|
||||
<dd>Conecta à fonte de dados especificada em <code>sourcename</code> usando
|
||||
<code>username</code> e <code>password</code> se eles são fornecidos.<br/>
|
||||
O <code>sourcename</code> pode variar de acordo com cada driver.
|
||||
Alguns usam simplesmente o nome do banco de dados, como PostgreSQL, MySQL e SQLite;
|
||||
@ -210,7 +210,7 @@ env = luasql.jdbc ("com.mysql.jdbc.Driver")
|
||||
|
||||
<h2><a name="connection_object"></a>Conexão</h2>
|
||||
|
||||
<p>Uma conexão contém atributos e parâmetros específicos de uma
|
||||
<p>Uma conexão contém atributos e parâmetros específicos de uma
|
||||
única conexão de base de dados. Uma conexão é criada chamando
|
||||
o método <code><a href="#env_connect">environment:connect</a></code>.</p>
|
||||
|
||||
@ -278,7 +278,7 @@ e <a href="#oracle_extensions">Oracle</a>.</p>
|
||||
chamado com uma tabela, os resultados são copiados para a tabela e a tabela
|
||||
é retornada. Neste caso, pode ser usado um
|
||||
parâmetro opcional de modo (<code>modestring</code>): uma seqüência
|
||||
de caracteres indicando como deve ser construída a tabela de resultados.
|
||||
de caracteres indicando como deve ser construída a tabela de resultados.
|
||||
A seqüência de caracteres do modo pode conter:
|
||||
<dl>
|
||||
<dt><strong>"n"</strong></dt><dd>a tabela resultante terá índices numéricos (padrão)</dd>
|
||||
@ -320,7 +320,7 @@ o driver Postgres oferece as seguintes funcionalidades adicionais:</p>
|
||||
<dd>No driver PostgreSQL este método tem mais dois parâmetros opcionais que indicam
|
||||
o <code>hostname</code> e a <code>port</code> a serem utilizados na conexão.
|
||||
Além disso, o primeiro parâmetro também pode conter todas as informações
|
||||
de conexão, como é dito na documentação
|
||||
de conexão, como é dito na documentação
|
||||
para a função <code>PQconnectdb</code> no manual do PostgreSQL
|
||||
(ex. <small><code>environment:connect("dbname=<<em>name</em>> user=<<em>username</em>>")</code></small>)<br/>
|
||||
Veja também: <a href="#environment_object">ambiente</a><br/>
|
||||
@ -404,4 +404,4 @@ o driver para SQLite3 ainda oferece uma funcionalidade adicional:</p>
|
||||
</div> <!-- id="container" -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -1,16 +1,16 @@
|
||||
body {
|
||||
margin-left: 1em;
|
||||
margin-right: 1em;
|
||||
body {
|
||||
margin-left: 1em;
|
||||
margin-right: 1em;
|
||||
font-family: arial, helvetica, geneva, sans-serif;
|
||||
background-color:#ffffff; margin:0px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: "Andale Mono", monospace;
|
||||
font-family: "Andale Mono", monospace;
|
||||
}
|
||||
|
||||
tt {
|
||||
font-family: "Andale Mono", monospace;
|
||||
font-family: "Andale Mono", monospace;
|
||||
}
|
||||
|
||||
body, td, th { font-size: 11pt; }
|
||||
@ -35,10 +35,10 @@ h3 { padding-top: 1em; }
|
||||
|
||||
p { margin-left: 1em; }
|
||||
|
||||
p.name {
|
||||
font-family: "Andale Mono", monospace;
|
||||
p.name {
|
||||
font-family: "Andale Mono", monospace;
|
||||
padding-top: 1em;
|
||||
margin-left: 0em;
|
||||
margin-left: 0em;
|
||||
}
|
||||
|
||||
blockquote { margin-left: 3em; }
|
||||
@ -60,13 +60,13 @@ blockquote { margin-left: 3em; }
|
||||
padding: 1em;
|
||||
margin-left: 1em;
|
||||
margin-right: 1em;
|
||||
font-family: "Andale Mono", monospace;
|
||||
font-family: "Andale Mono", monospace;
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
hr {
|
||||
hr {
|
||||
margin-left: 0em;
|
||||
background: #00007f;
|
||||
background: #00007f;
|
||||
border: 0px;
|
||||
height: 1px;
|
||||
}
|
||||
@ -205,7 +205,7 @@ div.header, div.footer { margin-left: 0em; }
|
||||
display: none;
|
||||
}
|
||||
.example {
|
||||
font-family: "Andale Mono", monospace;
|
||||
font-family: "Andale Mono", monospace;
|
||||
font-size: 8pt;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
@ -53,7 +53,7 @@
|
||||
<li><a href="http://github.com/keplerproject/luasql">Project</a>
|
||||
<ul>
|
||||
<li><a href="http://github.com/keplerproject/luasql/issues">Bug Tracker</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="license.html">License</a></li>
|
||||
@ -135,7 +135,7 @@ end
|
||||
</pre>
|
||||
|
||||
<p>Here is how the iterator is used:</p>
|
||||
|
||||
|
||||
<pre class="example">
|
||||
env = assert (require"luasql.mysql".mysql())
|
||||
con = assert (env:connect"my_db")
|
||||
|
@ -53,7 +53,7 @@
|
||||
<li><a href="http://github.com/keplerproject/luasql">Project</a>
|
||||
<ul>
|
||||
<li><a href="http://github.com/keplerproject/luasql/issues">Bug Tracker</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="license.html">License</a></li>
|
||||
@ -120,7 +120,7 @@
|
||||
<li>Corrected bug avoiding duplicate access to stack</li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
<dt><strong><a href="http://www.keplerproject.org/luasql/2.0/">LuaSQL 2.0.2</a></strong> [26/Jun/2006]</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
@ -196,4 +196,4 @@
|
||||
</div> <!-- id="container" -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -127,7 +127,7 @@ 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>
|
||||
|
||||
<p>LuaSQL development was sponsored by
|
||||
<p>LuaSQL development was sponsored by
|
||||
<a href="http://www.fabricadigital.com.br">Fábrica Digital</a>, FINEP and CNPq.</p>
|
||||
|
||||
<h2><a name="contact"></a>Contact us</h2>
|
||||
@ -150,4 +150,4 @@ Comments are welcome!</p>
|
||||
</div> <!-- id="container" -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -52,7 +52,7 @@
|
||||
<li><a href="http://github.com/keplerproject/luasql">Project</a>
|
||||
<ul>
|
||||
<li><a href="http://github.com/keplerproject/luasql/issues">Bug Tracker</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li><strong>License</strong></li>
|
||||
|
@ -53,7 +53,7 @@
|
||||
<li><a href="http://github.com/keplerproject/luasql">Project</a>
|
||||
<ul>
|
||||
<li><a href="http://github.com/keplerproject/luasql/issues">Bug Tracker</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="license.html">License</a></li>
|
||||
@ -97,7 +97,7 @@ as Lua 5.1.
|
||||
a pair of common source and header files (<code>luasql.h</code> and <code>luasql.c</code>);
|
||||
and one source file for each driver.
|
||||
Each driver should be compiled with the luasql.c file to generate a library.
|
||||
This library can be linked to the application or dynamically loaded.
|
||||
This library can be linked to the application or dynamically loaded.
|
||||
The initialization function is <code>luaopen_luasql<em>drivername</em></code> and it is a Lua
|
||||
<a href="http://www.lua.org/manual/5.1/manual.html#pdf-require"><code>open-library</code></a> compatible function.
|
||||
</p>
|
||||
@ -187,7 +187,7 @@ local env = driver.odbc()
|
||||
the object is already closed.</dd>
|
||||
|
||||
<dt><a name="env_connect"></a><strong><code>env:connect(sourcename[,username[,password]])</code></strong></dt>
|
||||
<dd>Connects to a data source specified in <code>sourcename</code> using
|
||||
<dd>Connects to a data source specified in <code>sourcename</code> using
|
||||
<code>username</code> and <code>password</code> if they are supplied.<br/>
|
||||
The <code>sourcename</code> may vary according to each driver.
|
||||
Some use a simple database name, like PostgreSQL, MySQL and SQLite;
|
||||
@ -430,4 +430,4 @@ the SQLite3 driver also offers this extra feature:</p>
|
||||
</div> <!-- id="container" -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -1,4 +1,4 @@
|
||||
body {
|
||||
body {
|
||||
color: #47555c;
|
||||
font-size: 16px;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
@ -24,18 +24,18 @@ hr {
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: "Open Sans Mono", "Andale Mono", monospace;
|
||||
font-family: "Open Sans Mono", "Andale Mono", monospace;
|
||||
}
|
||||
|
||||
tt {
|
||||
font-family: "Open Sans Mono", "Andale Mono", monospace;
|
||||
font-family: "Open Sans Mono", "Andale Mono", monospace;
|
||||
}
|
||||
|
||||
body, td, th {
|
||||
}
|
||||
|
||||
textarea, pre, tt {
|
||||
font-family: "Open Sans Mono", "Andale Mono", monospace;
|
||||
font-family: "Open Sans Mono", "Andale Mono", monospace;
|
||||
}
|
||||
|
||||
img {
|
||||
@ -205,7 +205,7 @@ dl.reference dd {
|
||||
display: none;
|
||||
}
|
||||
.example {
|
||||
font-family: "Andale Mono", monospace;
|
||||
font-family: "Andale Mono", monospace;
|
||||
font-size: 8pt;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@
|
||||
<li><a href="http://github.com/keplerproject/luasql">Project</a>
|
||||
<ul>
|
||||
<li><a href="http://github.com/keplerproject/luasql/issues">Bug Tracker</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="license.html">License</a></li>
|
||||
@ -114,7 +114,7 @@ end
|
||||
</pre>
|
||||
|
||||
<p>Here is how the iterator is used:</p>
|
||||
|
||||
|
||||
<pre class="example">
|
||||
env = assert (require"luasql.mysql".mysql())
|
||||
con = assert (env:connect"my_db")
|
||||
|
@ -32,7 +32,7 @@
|
||||
<li><a href="http://github.com/keplerproject/luasql">Project</a>
|
||||
<ul>
|
||||
<li><a href="http://github.com/keplerproject/luasql/issues">Bug Tracker</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="license.html">License</a></li>
|
||||
@ -152,7 +152,7 @@
|
||||
<li>Corrected bug avoiding duplicate access to stack</li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
<dt><strong><a href="http://www.keplerproject.org/luasql/2.0/">LuaSQL 2.0.2</a></strong> [26/Jun/2006]</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
@ -227,4 +227,4 @@
|
||||
</div> <!-- id="container" -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -74,7 +74,7 @@ For more details on the features list please check the product
|
||||
|
||||
<h2><a name="download"></a>Download</h2>
|
||||
<p>
|
||||
LuaSQL can be installed via <a href="http://luarocks.org">LuaRocks</a>, using the
|
||||
LuaSQL can be installed via <a href="http://luarocks.org">LuaRocks</a>, using the
|
||||
driver for your database of choice:
|
||||
|
||||
<pre class="example">
|
||||
@ -121,7 +121,7 @@ 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>
|
||||
|
||||
<p>LuaSQL development was sponsored by
|
||||
<p>LuaSQL development was sponsored by
|
||||
<a href="http://www.fabricadigital.com.br">Fábrica Digital</a>, FINEP and CNPq.</p>
|
||||
|
||||
<h2><a name="contact"></a>Contact us</h2>
|
||||
@ -143,4 +143,4 @@ Comments are welcome!</p>
|
||||
</div> <!-- id="container" -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -31,7 +31,7 @@
|
||||
<li><a href="http://github.com/keplerproject/luasql">Project</a>
|
||||
<ul>
|
||||
<li><a href="http://github.com/keplerproject/luasql/issues">Bug Tracker</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li><strong>License</strong></li>
|
||||
|
@ -46,7 +46,7 @@
|
||||
<li><a href="http://github.com/keplerproject/luasql">Project</a>
|
||||
<ul>
|
||||
<li><a href="http://github.com/keplerproject/luasql/issues">Bug Tracker</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="license.html">License</a></li>
|
||||
@ -90,7 +90,7 @@ as Lua 5.1.
|
||||
a pair of common source and header files (<code>luasql.h</code> and <code>luasql.c</code>);
|
||||
and one source file for each driver.
|
||||
Each driver should be compiled with the luasql.c file to generate a library.
|
||||
This library can be linked to the application or dynamically loaded.
|
||||
This library can be linked to the application or dynamically loaded.
|
||||
The initialization function is <code>luaopen_luasql<em>drivername</em></code> and it is a Lua
|
||||
<a href="http://www.lua.org/manual/5.1/manual.html#pdf-require"><code>open-library</code></a> compatible function.
|
||||
</p>
|
||||
@ -180,7 +180,7 @@ local env = driver.odbc()
|
||||
the object is already closed.</dd>
|
||||
|
||||
<dt><a name="env_connect"></a><strong><code>env:connect(sourcename[,username[,password]])</code></strong></dt>
|
||||
<dd>Connects to a data source specified in <code>sourcename</code> using
|
||||
<dd>Connects to a data source specified in <code>sourcename</code> using
|
||||
<code>username</code> and <code>password</code> if they are supplied.<br/>
|
||||
The <code>sourcename</code> may vary according to each driver.
|
||||
Some use a simple database name, like PostgreSQL, MySQL and SQLite;
|
||||
@ -388,7 +388,7 @@ the MySQL driver also offers these extra features:</p>
|
||||
<dd>Retrieves the next result set, if another result is available (e.g. multiple statements)<br/>
|
||||
See also: <a href="#cursor_object">cursor objects</a><br/>
|
||||
Returns: true, if next result was selected. false and -1 if no other result is available. false, errno and error message, if an error occured.<br/>
|
||||
To use it you need to pass the <code>CLIENT_MULTI_STATEMENTS = 1<<16</code> flag on connection.
|
||||
To use it you need to pass the <code>CLIENT_MULTI_STATEMENTS = 1<<16</code> flag on connection.
|
||||
Be aware that you need to iterate over all results otherwise you will receive an "out of sync" error.
|
||||
</dd>
|
||||
|
||||
@ -397,7 +397,7 @@ the MySQL driver also offers these extra features:</p>
|
||||
<dd>Checks if next result is available<br/>
|
||||
See also: <a href="#cursor_object">cursor objects</a><br/>
|
||||
Returns: true or false<br/>
|
||||
To use it you need to pass the <code>CLIENT_MULTI_STATEMENTS = 1<<16</code> flag on connection.
|
||||
To use it you need to pass the <code>CLIENT_MULTI_STATEMENTS = 1<<16</code> flag on connection.
|
||||
Be aware that you need to iterate over all results otherwise you will receive an "out of sync" error.
|
||||
</dd>
|
||||
</dl>
|
||||
@ -458,4 +458,4 @@ the SQLite3 driver also offers this extra feature:</p>
|
||||
</div> <!-- id="container" -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user