$sql =
$this->
{$renderMethod}($table,
$this->QBKeys,
$QBSet);
if ($sql === ''
) { return false; // @codeCoverageIgnore
} if ($this->testMode
) { $savedSQL[] =
$sql;
} else { $this->db->
query($sql, null, false
);
$affectedRows +=
$this->db->
affectedRows();
} } if (!
$this->testMode
) { $this->
resetWrite();
} return $this->testMode ?
$savedSQL :
$affectedRows;
} /**
* Allows a row or multiple rows to be set for batch inserts/upserts/updates
*
* @param array|object $set
* @param string $alias alias for sql table
*
* @return $this|null
*/