for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pixie\QueryBuilder;
class Transaction extends QueryBuilderHandler
{
/**
* Commit the database changes
*
* @throws TransactionHaltException
*/
public function commit(): void
$this->dbInstance->query('COMMIT');
throw new TransactionHaltException();
}
* Rollback the database changes
public function rollback(): void
$this->dbInstance->query('ROLLBACK');