Index: doc/lsqlite3.wiki ================================================================== --- doc/lsqlite3.wiki +++ doc/lsqlite3.wiki @@ -75,11 +75,12 @@
LuaSQLite 3 - a Lua 5.1 and Lua 5.2 wrapper for the SQLite3 library
+LuaSQLite 3 - a Lua 5.1 to 5.3 wrapper for the SQLite3 library
LuaSQLite 3 is a thin wrapper around the public domain SQLite3 @@ -156,11 +157,11 @@
The distribution contains a tests directory with some units tests using
an enhanced version of Michael Roth's lunit
called lunitx
. Some of the
tests were also derived from Michael's lua-sqlite3 module, and more unit tests
added by Doug Currie. Get lunitx
using Luarocks.
The distribution also contains some functional tests by Tiago.
-This version of lsqlite3
was tested with SQLite 3.7.16.1.
This version of lsqlite3
was tested with SQLite 3.8.7.4.
@@ -611,12 +612,15 @@
stmt:bind(n[,value])
Binds value to statement parameter n
. If the type of value is string
-or number, it is bound as text or double, respectively. If value
is a
-boolean or nil or missing, any previous binding is removed. The function
+it is bound as text. If the type of value is number, then with Lua prior to 5.3
+it is bound as a double, with Lua 5.3 it is bound as an integer or double
+depending on its subtype using lua_isinteger
. If value
is a
+boolean then it is bound as 0 for false
or 1 for true
.
+If value
is nil or missing, any previous binding is removed. The function
returns sqlite3.OK
on success or else a numerical error code (see
Numerical error and result codes).
Returns an function that iterates over the values of the result set of
statement stmt. Each iteration returns the values for the current row.
This is the prepared statement equivalent of db:urows()
.
+
++ stmt:last_insert_rowid()+
This function returns the rowid of the most recent INSERT into the
+database corresponding to this statement.
+See db:last_insert_rowid()
.
A callback context is available as a parameter inside the callback
functions db:create_aggregate()
and
@@ -963,11 +975,11 @@
documentation http://www.sqlite.org/.
This is lsqlite3
version fsl_9
, also known as "devel-0.9".
This is lsqlite3
version fsl_9u
, also known as "devel-0.9.2-1".
lsqlite3
was developed by Tiago Dionizio and Doug Currie with
@@ -980,11 +992,11 @@
/************************************************************************ * lsqlite3 * - * Copyright (C) 2002-2013 Tiago Dionizio, Doug Currie * + * Copyright (C) 2002-2015 Tiago Dionizio, Doug Currie * * All rights reserved. * * Author : Tiago Dionizio <tiago.dionizio@ist.utl.pt> * * Author : Doug Currie <doug.currie@alum.mit.edu> * * Library : lsqlite3 - a SQLite 3 database binding for Lua 5 * * *