sqlite.exec()
Executes one prepared SQL statement.
Signature
sqlite.exec(connection, statement[, parameters])
Parameters
Connection, nonempty SQL string, optional positional array containing exactly the bound parameter count.
Returns
Signed delta in SQLite total changes.
Behavior
Steps through and discards returned rows. Finalizes the statement.
Errors
SQL, parameter count/type, connection or execution error.
Example
use sqlite
db = sqlite.open()
sqlite.exec(db, 'create table notes (body text)')
assert(sqlite.exec(db, 'insert into notes values (?)', ['Atom']) == 1)
sqlite.close(db)