protected function _update(string
$table, array
$values): string
{ $valStr =
[];
foreach ($values as $key =>
$val) { $valStr[] =
$key . ' = ' .
$val;
} return 'UPDATE ' .
$this->
compileIgnore('update'
) .
$table . ' SET ' .
implode(', ',
$valStr) .
$this->
compileWhereHaving('QBWhere'
) .
$this->
compileOrderBy() .
($this->QBLimit ?
$this->
_limit(' ', true
) : ''
);
} /**
* This method is used by both update() and getCompiledUpdate() to
* validate that data is actually being set and that a table has been
* chosen to be updated.
*
* @throws DatabaseException
*/
protected function validateUpdate(): bool
{