phprs\ezsql\rules\insert\OnDuplicateKeyUpdateRule::onDuplicateKeyUpdate PHP Method

onDuplicateKeyUpdate() public method

insertInto('table') ->values(['a'=>1, 'b'=>Sql::native('now()')]) ->onDuplicateKeyUpdate('a', Sql::native('a+1')) => "INSERT INTO table(a,b) VALUES(1,now()) ON DUPLICATE KEY UPDATE a=a+1"
public onDuplicateKeyUpdate ( string $column, mixed $value ) : ExecRule
$column string
$value mixed
return phprs\ezsql\rules\basic\ExecRule
    public function onDuplicateKeyUpdate($column, $value)
    {
        $this->impl->set($this->context, $column, $value);
        return new ExecRule($this->context);
    }