Ouzo\Db::execute PHP Method

execute() public method

Returns number of affected rows
public execute ( string $query, array $params = [], array $options = [] ) : integer
$query string
$params array
$options array
return integer
    public function execute($query, $params = array(), $options = array())
    {
        return StatementExecutor::prepare($this->_dbHandle, $query, $params, $options)->execute();
    }

Usage Example

Beispiel #1
0
 public function execute()
 {
     $this->_buildQuery();
     return $this->_db->execute($this->_sql, $this->_boundValues);
 }