Skip to content

Commit

Permalink
Replaced broken LuaSQLite Documentation link (coronalabs#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwebltd authored Mar 27, 2021
1 parent e605186 commit 9f85cee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions markdown/api/library/sqlite3/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
> __Type__ [Library][api.type.Library]
> __Revision__ [REVISION_LABEL](REVISION_URL)
> __Keywords__ sqlite3, database, sqlite
> __See also__ [LuaSQLite Documentation](http://luasqlite.luaforge.net/lsqlite3.html)
> __See also__ [LuaSQLite Documentation](http://lua.sqlite.org/index.cgi/doc/tip/doc/lsqlite3.wiki)
> [SQLite Language Reference](http://www.sqlite.org/lang.html)
> --------------------- ------------------------------------------------------------------------------------------
## Overview

Corona includes support for SQLite databases on all platforms. The documentation for LuaSQLite can be viewed [here](http://luasqlite.luaforge.net/lsqlite3.html).
CORONA_CORE_PRODUCT includes support for SQLite databases on all platforms. The documentation for LuaSQLite can be viewed [here](http://lua.sqlite.org/index.cgi/doc/tip/doc/lsqlite3.wiki).


## Gotchas
Expand All @@ -24,11 +24,11 @@ When providing a file path to `open()`, make sure to use [system.pathForFile()][

* `sqlite3.version()` — Returns the version of SQLite in use. Returns a string with SQLite version information in the form `x.y[.z]`.

* `file:exec( SQL_Command )` — Executes a SQL command in the database. Typically this is used to create tables, insert, update, append, or retrieve data from a database. In case of an error, this function returns a numerical [error code](http://luasqlite.luaforge.net/lsqlite3.html#numerical%20error%20and%20result%20codes).
* `file:exec( SQL_Command )` — Executes a SQL command in the database. Typically this is used to create tables, insert, update, append, or retrieve data from a database. In case of an error, this function returns a numerical [error code](http://lua.sqlite.org/index.cgi/doc/tip/doc/lsqlite3.wiki#numerical_error_and_result_codes).

* `file:nrows( SQL_Command )` — Returns successive rows from the SQL statement. Each call to the iterator returns a table in which the named fields correspond to the columns in the database.

* `file:close()` — Closes the database. In case of an error, this function returns a numerical [error code](http://luasqlite.luaforge.net/lsqlite3.html#numerical%20error%20and%20result%20codes).
* `file:close()` — Closes the database. In case of an error, this function returns a numerical [error code](http://lua.sqlite.org/index.cgi/doc/tip/doc/lsqlite3.wiki#numerical_error_and_result_codes).


## Examples
Expand Down

0 comments on commit 9f85cee

Please sign in to comment.