Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: php
php:
- 5.6
- 5.5
- 7
- 7.3
- hhvm
install: composer install
script: ./vendor/bin/phpunit --coverage-clover clover.xml
Expand All @@ -11,4 +11,5 @@ matrix:
fast_finish: true
allow_failures:
- php: 7
- PHP: 7.3
- php: hhvm
30 changes: 30 additions & 0 deletions src/DataAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,4 +442,34 @@ public function filterInsertValues($data, $fields)
}
return $insertValues;
}

/**
* Initiates a transaction
* @see \PDO::beginTransaction()
* @return bool <code>TRUE</code> on success or <code>FALSE</code> on failure.
*/
public function beginTransaction()
{
return $this->pdo->beginTransaction();
}

/**
* Initiates a transaction
* @see \PDO::rollBack()
* @return bool <code>TRUE</code> on success or <code>FALSE</code> on failure.
*/
public function rollback()
{
return $this->pdo->rollBack();
}

/**
* Commits a transaction
* @see \PDO::commit()
* @return bool <code>TRUE</code> on success or <code>FALSE</code> on failure.
*/
public function commit()
{
return $this->pdo->commit();
}
}