DBIx-MoCo
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/DBIx/MoCo/DataBase.pm view on Meta::CPAN
sub delete {
my $class = shift;
my ($table, $where) = @_;
$where or croak "where is not specified to delete from $table";
(ref $where eq 'HASH' && %$where) or croak "where is not specified to delete from $table";
my ($sql, @binds) = $sqla->delete($table,$where);
$sql =~ /WHERE/io or croak "where is not specified to delete from $table";
$class->execute($sql,undef,\@binds);
}
sub update {
my $class = shift;
my ($table, $args, $where) = @_;
$where or croak "where is not specified to update $table";
(ref $where eq 'HASH' && %$where) or croak "where is not specified to update $table";
my ($sql, @binds) = $sqla->update($table,$args,$where);
$sql =~ /WHERE/io or croak "where is not specified to update $table";
$class->execute($sql,undef,\@binds);
}
sub select {
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.033 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )