MySQLTransactionManager
class MySQLTransactionManager implements TransactionManager (View source)
TransactionManager that executes MySQL-compatible transaction control queries
Properties
protected | $dbConn | |||
protected | $inTransaction |
Methods
Start a prepared transaction
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)
No description
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.