affectingStatement() public method

Run an SQL statement and get the number of rows affected.
public affectingStatement ( string $query, array $bindings = [] ) : integer
$query string
$bindings array
return integer
Example #1
0
 public function execute($sql)
 {
     return $this->connection->affectingStatement($sql);
 }