public function queryArgs($sql, array $params)
{
return $this->query($sql, ...$params);
}
/** * Updates all rows in result set. * @param array ($column => $value) * @return int number of affected rows or FALSE in case of an error */ public function update(array $data) { if (!$data) { return 0; } // joins in UPDATE are supported only in MySQL return $this->connection->queryArgs('UPDATE' . $this->topString() . " {$this->delimitedName} SET ?" . $this->whereString(), array_merge(array($data), $this->parameters))->rowCount(); }