The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

SQL::Composer::Update - UPDATE statement

SYNOPSIS

my $expr = SQL::Composer::Update->new(
    table  => 'table',
    values => [a => 'b'],
    where  => [c => 'd']
);

my $sql = $expr->to_sql;   # 'UPDATE `table` SET `a` = ? WHERE `c` = ?'
my @bind = $expr->to_bind; # ['b', 'd']