getAutocommit



Determines if this database connection is, or is not, in autocommit mode.

Arguments: This method does not take any arguments.
Return value: Returns true if the connection is in autocommit mode, otherwise false.
Remarks: Autocommit mode is on by default. Autocommit mode is disabled by a BEGIN statement. Autocommit mode is re-enabled by a COMMIT or ROLLBACK. If certain kinds of errors happen on a statement within a multi-statement transaction then the transaction might be rolled back automatically. The only way to find out whether SQLite automatically rolled back the transaction after an error is to use this function.
Details: The functionality of thegetAutoCommitmethod is similar to that of the SQLite sqlite3_get_autocommit API.