classes/Connection.php
public function execute($query, ...$data)
    {
        if ($data) {
            $query = $this->merge($query, $data);
        }

        try {
            return $this->pdo->exec($query);
        } catch (PDOException $exception) {
            throw new QueryException($exception, $query);
        }
    }
public function execute($query, ...$data)
    {
        if ($data) {
            $query = $this->merge($query, $data);
        }

        try {
            return $this->pdo->exec($query);
        } catch (PDOException $exception) {
            throw new QueryException($exception, $query);
        }
    }
public function execute ( $ query , ... $ data ) { if ( $ data ) { $ query = $ this -> merge ( $ query , $ data ) ; } try { return $ this -> pdo -> exec ( $ query ) ; } catch ( PDOException $ exception ) { throw new QueryException ( $ exception , $ query ) ; } }
Execute a query and return the number of rows affected

@param string $query
@param mixed  ...$data
@return int
@throws QueryException
Execute a query and return the number of rows affected