Doctrine\DBAL\Connection::createSavepoint PHP Method

createSavepoint() public method

Creates a new savepoint.
public createSavepoint ( string $savepoint ) : void
$savepoint string The name of the savepoint to create.
return void
    public function createSavepoint($savepoint)
    {
        if (!$this->getDatabasePlatform()->supportsSavepoints()) {
            throw ConnectionException::savepointsNotSupported();
        }
        $this->_conn->exec($this->platform->createSavePoint($savepoint));
    }

Usage Example

コード例 #1
0
ファイル: Connection.php プロジェクト: koolkode/database
 protected function performCommit($identifier = NULL)
 {
     if ($identifier === NULL) {
         return $this->conn->commit();
     }
     $this->conn->createSavepoint($identifier);
 }
All Usage Examples Of Doctrine\DBAL\Connection::createSavepoint