MySQLTransactionManager
class MySQLTransactionManager implements TransactionManager
TransactionManager that executes MySQL-compatible transaction control queries
Methods
Start a prepared transaction
Complete a transaction
Roll-back a transaction
Create a new savepoint
Return the depth of the transaction For unnested transactions returns 1 while in a transaction, 0 otherwise
Return true if savepoints are supported by this transaction manager.
Details
at line 16
__construct(Database $dbConn)
at line 21
bool
transactionStart(string|boolean $transactionMode = false, string|boolean $sessionCharacteristics = false)
Start a prepared transaction
at line 51
bool
transactionEnd($chain = false)
Complete a transaction
at line 70
bool
transactionRollback(string $savepoint = null)
Roll-back a transaction
at line 86
transactionSavepoint(string $savepoint)
Create a new savepoint
at line 91
int
transactionDepth()
Return the depth of the transaction For unnested transactions returns 1 while in a transaction, 0 otherwise
at line 96
boolean
supportsSavepoints()
Return true if savepoints are supported by this transaction manager.
Savepoints aren't supported by all database connectors (notably PDO doesn't support them) and should be used with caution.