src/Driver/Driver.php
public function execute(string $query, array $parameters = []): int
    {
        return $this->statement($query, $parameters)->rowCount();
    }
public function execute(string $query, array $parameters = []): int
    {
        return $this->statement($query, $parameters)->rowCount();
    }
public function execute ( string $ query , array $ parameters = [ ] ) : int { return $ this -> statement ( $ query , $ parameters ) -> rowCount ( ) ; }
Execute query and return number of affected rows.

@param string $query
@param array  $parameters
@return int

@throws StatementException
Execute query and return number of affected rows .