Transaction
Object Hierarchy:
Description:
public class Transaction :
Object,
Queryable
Object representing an SQLite transaction
Note that this is implemented using SQLite's SAVEPOINT feature, meaning that by
default it is like that of a TransactionType.DEFERRED transaction.
This behaviour may be modified by first manually running a transaction in SQL, but
remember that such transactions cannot be nested.
Namespace: SQLHeavy
Package: SQLHeavy
Content:
Properties:
Creation methods:
Methods:
-
public void lock ()
Lock the queryable and refuse to run any queries against it.
-
public void unlock ()
Unlock the queryable and allow queries to be run against it.
-
public void queue (Query query) throws Error
Queue a query to be executed when the queryable is unlocked
-
public void commit () throws Error
Commit the transaction to the database
-
public async void commit_async () throws Error
Commit the transaction to the database asynchronously
-
public void rollback () throws Error
Rollback the transaction
-
public async void rollback_async () throws Error
Rollback the transaction asynchronously
Signals: