MySQLTransactionManager
class MySQLTransactionManager implements TransactionManager (View source)
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
__construct(Database $dbConn)
bool
transactionStart(string|bool $transactionMode = false, string|bool $sessionCharacteristics = false)
Start a prepared transaction
bool
transactionEnd($chain = false)
Complete a transaction
bool
transactionRollback(string $savepoint = null)
Roll-back a transaction
transactionSavepoint(string $savepoint)
Create a new savepoint
int
transactionDepth()
Return the depth of the transaction For unnested transactions returns 1 while in a transaction, 0 otherwise
bool
supportsSavepoints()
Return true if savepoints are supported by this transaction manager.
Savepoints aren't supported by all database connectors and should be used with caution.