Coteng

 view release on metacpan or  search on metacpan

lib/Coteng.pm  view on Meta::CPAN

    } else {
        # use transaction for better performance and atomicity.
        my $txn = $dbh->txn_scope();
        for my $arg (@$args) {
            $self->insert($table, $arg);
        }
        $txn->commit;
    }
}

sub update {
    my ($self, $table, $args, $where) = @_;

    my ($sql, @binds) = $self->sql_builder->update($table, $args, $where);
    $self->execute($sql, @binds);
}

sub delete {
    my ($self, $table, $where) = @_;

    my ($sql, @binds) = $self->sql_builder->delete($table, $where);

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.284 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )