|GSAK (Geocaching Swiss Army Knife)|
InTransaction() : boolean
Test to see if a transaction is already running.
Native Sqlite Begin/commit should really only be used when you are *not* using the GSAK default database (that is, when you open a database that is not the current database).
If possible it is always better to use the Transaction command. Surprisingly, native Sqlite does not provide any way for you to know you are currently in a transaction. This could cause conflicts and crashes if your macro is called by another macro and you are both using transactions.
Use of the "Transaction" command allows GSAK to keep an internal indicator that enables you to test if you are in a transaction via the InTransaction() function
Copyright 2004-2016 CWE Computer Services |