function commit(): \React\Promise\PromiseInterface {
        return $this->query('COMMIT')->then(function () {
            $this->driver->endTransaction();
            $this->client->checkinConnection($this->driver);
            $this->driver = null;
        });
    }
function commit(): \React\Promise\PromiseInterface {
        return $this->query('COMMIT')->then(function () {
            $this->driver->endTransaction();
            $this->client->checkinConnection($this->driver);
            $this->driver = null;
        });
    }
function commit ( ) : \ React \ Promise \ PromiseInterface { return $ this -> query ( 'COMMIT' ) -> then ( function ( ) { $ this -> driver -> endTransaction ( ) ; $ this -> client -> checkinConnection ( $ this -> driver ) ; $ this -> driver = null ; } ) ; }
Commits the changes.
@return \React\Promise\PromiseInterface
@throws \Plasma\TransactionException  Thrown if the transaction has been committed or rolled back.
Commits the changes .