DBIx-Abstract
view release on metacpan or search on metacpan
lib/DBIx/Abstract.pm view on Meta::CPAN
$sql .= $fields;
}
else {
die 'DBIx::Abstract: insert must have fields';
}
$self->__logwrite_sql( 1, $sql, @bind_params );
$self->__mod_query( $sql, @bind_params );
return $self;
}
sub update {
my $self = shift;
my ($table, $fields, $where ) = @_;
# $table == Name of table to update
# $fields == A reference to a hash of field/value pairs containing the
# new values for those fields.
# $where == One of my handy-dandy standard where's. See __where.
my ( $sql, @keys, @values, $i );
my (@bind_params);
if ( ref($table) ) {
( run in 0.766 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )