sqlite_begin

mIRC SQLite

sqlite_begin
Begins a transaction.
Syntax
$sqlite_begin ( conn )
/sqlite_begin conn
Parameters
conn
The connection identifier.
Return Value
1 on success, or $null if there was an error.
Remarks
$sqlite_begin is a shorthand function provided for convience for executing BEGIN TRANSACTION on conn.

Transactions should be used whenever a batch of queries that modify a database are executed. Transactions are much more efficient in such cases, because otherwise every individual query would create a transaction of their own, which is an expensive operation.

It is usually ok to ignore the return value of $sqlite_begin because the only case an error is returned is when an invalid conn is specified or it's used out of sequence.