Private GIT

Skip to content
Snippets Groups Projects
Commit 1e613e5f authored by Gary Allan's avatar Gary Allan
Browse files

Feature: Expose PDO SQL transaction functions in class.PDO

parent a12c2bd8
No related branches found
No related tags found
No related merge requests found
......@@ -827,6 +827,36 @@ abstract class DB {
//execute
return $this->runQuery('TRUNCATE TABLE `'.$tableName.'`;');
}
/**
* Begin SQL Transaction
*
* @access public
* @return bool
*/
public function beginTransaction() {
return $this->pdo->beginTransaction();
}
/**
* Commit SQL Transaction
*
* @access public
* @return bool
*/
public function commit() {
return $this->pdo->commit();
}
/**
* Commit SQL Transaction
*
* @access public
* @return bool
*/
public function rollBack() {
return $this->pdo->rollBack();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment