Remove trailing spaces from documentation

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
master
Marko Lindqvist 2022-05-28 13:25:39 +03:00
parent 061e8afb62
commit 859aeb8237
18 changed files with 70 additions and 70 deletions

4
README
View File

@ -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.

View File

@ -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&ccedil;a</a></li>
@ -65,7 +65,7 @@
<h2><a name="examples"></a>Exemplos</h2>
<p>Abaixo, voc&ecirc; ver&aacute; um pequeno exemplo do c&oacute;digo do uso b&aacute;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 &eacute; usado da seguinte forma:</p>
<pre class="example">
require "luasql.mysql"
env = assert (luasql.mysql())

View File

@ -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&ccedil;a</a></li>
@ -75,24 +75,24 @@
Testes melhorados.<br />
Documenta&ccedil;&atilde;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&ccedil;&atilde;o</a>.
</dd>
<dt><strong>2.0 beta</strong> [10/12/2003]</dt>
</dl>

View File

@ -87,7 +87,7 @@ PostgreSQL 7.x e 8.x.</p>
<p>O driver MySQL foi testado em Windows, Linux e &eacute; compat&iacute;vel com as vers&otilde;es 4.0, 4.1 e 5.0.</p>
<p>O driver Oracle foi testado em Windows e &eacute; compat&iacute;vel com OCI 8 API.</p>
<p>O driver SQLite foi testado em Windows e Linux e &eacute; compat&iacute;vel com as vers&otilde;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&atilde;o 2.0 foi redesenhada por Roberto Ierusalimschy, Andr&eacute; Carregal
e Tom&aacute;s Guisasola como parte do
<a href="http://www.keplerproject.org">Projeto Kepler</a>.
A implementa&ccedil;&atilde;o &eacute; compat&iacute;vel com Lua 5.0 e foi codificada por Tom&aacute;s Guisasola, Eduardo Quint&atilde;o, Thiago Ponte, Fabio Mascarenhas, Danilo Tuler,
A implementa&ccedil;&atilde;o &eacute; compat&iacute;vel com Lua 5.0 e foi codificada por Tom&aacute;s Guisasola, Eduardo Quint&atilde;o, Thiago Ponte, Fabio Mascarenhas, Danilo Tuler,
com inestim&aacute;veis contribui&ccedil;&otilde;es de Michael Roth, Tiago Dionizio e Leonardo Godinho.
</p>
@ -127,7 +127,7 @@ Muitas modifica&ccedil;&otilde;es foram feitas, mas n&atilde;o distribu&iacute;d
Carlos Cassino, Tom&aacute;s Guisasola and Eduardo Quint&atilde;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&aacute;brica Digital</a>, FINEP e CNPq.
</p>

View File

@ -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&ccedil;a</strong></li>

View File

@ -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&ccedil;a</a></li>
@ -85,16 +85,16 @@ A conex&atilde;o pode executar comandos SQL e, eventualmente, criar um
um arquivo fonte e um arquivo cabe&ccedil;alho comuns a todos os drivers
(<code>luasql.h</code> e <code>luasql.c</code>) &ndash; 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 &agrave; aplica&ccedil;&atilde;o
para gerar uma biblioteca. Essa biblioteca pode ser linkada &agrave; aplica&ccedil;&atilde;o
ou carregada dinamicamente. A fun&ccedil;&atilde;o de inicializa&ccedil;&atilde;o &eacute;
<code>luaopen_luasql<em>nomedriver</em></code> e &eacute; compat&iacute;vel com o formato
<code>luaopen_luasql<em>nomedriver</em></code> e &eacute; compat&iacute;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&ccedil;&atilde;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&ccedil;&atilde;o de
para Lua 5.1. Logo, esse pacote deve ser "instalado". Consulte a se&ccedil;&atilde;o de
<a href="http://www.keplerproject.org/compat/manual.html#configuration">
configura&ccedil;&atilde;o do Compat-5.1</a> para saber como instalar os pacotes bin&aacute;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 &agrave; fonte de dados especificada em <code>sourcename</code> usando
<dd>Conecta &agrave; fonte de dados especificada em <code>sourcename</code> usando
<code>username</code> e <code>password</code> se eles s&atilde;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&atilde;o</h2>
<p>Uma conex&atilde;o cont&eacute;m atributos e par&acirc;metros espec&iacute;ficos de uma
<p>Uma conex&atilde;o cont&eacute;m atributos e par&acirc;metros espec&iacute;ficos de uma
&uacute;nica conex&atilde;o de base de dados. Uma conex&atilde;o &eacute; criada chamando
o m&eacute;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&atilde;o copiados para a tabela e a tabela
&eacute; retornada. Neste caso, pode ser usado um
par&acirc;metro opcional de modo (<code>modestring</code>): uma seq&uuml;&ecirc;ncia
de caracteres indicando como deve ser constru&iacute;da a tabela de resultados.
de caracteres indicando como deve ser constru&iacute;da a tabela de resultados.
A seq&uuml;&ecirc;ncia de caracteres do modo pode conter:
<dl>
<dt><strong>"n"</strong></dt><dd>a tabela resultante ter&aacute; &iacute;ndices num&eacute;ricos (padr&atilde;o)</dd>
@ -320,7 +320,7 @@ o driver Postgres oferece as seguintes funcionalidades adicionais:</p>
<dd>No driver PostgreSQL este m&eacute;todo tem mais dois par&acirc;metros opcionais que indicam
o <code>hostname</code> e a <code>port</code> a serem utilizados na conex&atilde;o.
Al&eacute;m disso, o primeiro par&acirc;metro tamb&eacute;m pode conter todas as informa&ccedil;&otilde;es
de conex&atilde;o, como &eacute; dito na documenta&ccedil;&atilde;o
de conex&atilde;o, como &eacute; dito na documenta&ccedil;&atilde;o
para a fun&ccedil;&atilde;o <code>PQconnectdb</code> no manual do PostgreSQL
(ex. <small><code>environment:connect("dbname=&lt;<em>name</em>&gt; user=&lt;<em>username</em>&gt;")</code></small>)<br/>
Veja tamb&eacute;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>

View File

@ -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;
}

View File

@ -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")

View File

@ -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>

View File

@ -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&aacute;s Guisasola and Eduardo Quint&atilde;o (PostgreSQL).</p>
<p>LuaSQL development was sponsored by
<p>LuaSQL development was sponsored by
<a href="http://www.fabricadigital.com.br">F&aacute;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>

View File

@ -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>

View File

@ -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>

View File

@ -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;
}

View File

@ -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")

View File

@ -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>

View File

@ -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&aacute;s Guisasola and Eduardo Quint&atilde;o (PostgreSQL).</p>
<p>LuaSQL development was sponsored by
<p>LuaSQL development was sponsored by
<a href="http://www.fabricadigital.com.br">F&aacute;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>

View File

@ -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>

View File

@ -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>