Transaction
Less than 1 minute
Transaction
Trait providing transactional operations for PDO database connections.
trait TransactionIncludes methods to begin, commit, cancel (rollback), and check transaction state.
Methods
begin
Begins a new database transaction.
public begin(): boolReturns: bool
cancel
Cancels the current transaction and rolls back changes.
public cancel(): boolReturns: bool
commit
Commits the current transaction, saving all changes.
public commit(): boolReturns: bool
inTransaction
Checks if a transaction is currently active.
public inTransaction(): boolReturns: bool
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000