mirror of
https://github.com/dg/dibi.git
synced 2025-08-12 00:54:11 +02:00
- implemented savepoints support
This commit is contained in:
@@ -161,28 +161,31 @@ interface IDibiDriver
|
||||
|
||||
/**
|
||||
* Begins a transaction (if supported).
|
||||
* @param string optinal savepoint name
|
||||
* @return void
|
||||
* @throws DibiDriverException
|
||||
*/
|
||||
function begin();
|
||||
function begin($savepoint = NULL);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Commits statements in a transaction.
|
||||
* @param string optinal savepoint name
|
||||
* @return void
|
||||
* @throws DibiDriverException
|
||||
*/
|
||||
function commit();
|
||||
function commit($savepoint = NULL);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Rollback changes in a transaction.
|
||||
* @param string optinal savepoint name
|
||||
* @return void
|
||||
* @throws DibiDriverException
|
||||
*/
|
||||
function rollback();
|
||||
function rollback($savepoint = NULL);
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user