17 abstract public static function getDatabase($offset =
'default');
35 public static function commit($offset =
'default') {
46 public static function commitToLevel($transactionLevel, $offset =
'default') {
57 public static function commitAll($offset =
'default') {
67 public static function rollBack($offset =
'default') {
102 return self::getDatabase ( $offset )->callInTransaction ( $callback, $offset, ...$parameters );
111 public static function setIsolationLevel(
string $offset=
'default',$isolationLevel=
'READ COMMITTED') {
static rollBack($offset='default')
Rolls back a transaction.
static commit($offset='default')
Commits a transaction.
static beginTransaction($offset='default')
Initiates a transaction.
static rollBackAll($offset='default')
Rolls back all nested transactions (up to level 0)
static commitAll($offset='default')
Commits all nested transactions (up to level 0)
static getDatabase($offset='default')
static setIsolationLevel(string $offset='default', $isolationLevel='READ COMMITTED')
Sets the isolation level for transactions.
static commitToLevel($transactionLevel, $offset='default')
Commits nested transactions up to level $transactionLevel.
static callInTransaction($callback, $offset,... $parameters)
Call a callback with an array of parameters in a transaction.
static rollBackToLevel($transactionLevel, $offset='default')
Rolls back nested transactions up to level $transactionLevel.
Ubiquity\orm\traits This class is part of Ubiquity.