Initial commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace FluentMail\App\Services\DB\QueryBuilder;
|
||||
|
||||
class Transaction extends QueryBuilderHandler
|
||||
{
|
||||
|
||||
/**
|
||||
* Commit the database changes
|
||||
*/
|
||||
public function commit()
|
||||
{
|
||||
$this->db->query('COMMIT');
|
||||
|
||||
throw new TransactionHaltException();
|
||||
}
|
||||
|
||||
/**
|
||||
* Rollback the database changes
|
||||
*/
|
||||
public function rollback()
|
||||
{
|
||||
$this->db->query('ROLLBACK');
|
||||
|
||||
throw new TransactionHaltException();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user