DBIx-Easy
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
$dbi_interface -> update ('components', "table='ram'", price => 100);
$dbi_interface -> update ('components', "table='ram'", price => \"price + 20");
Updates any row of I<table> which fulfill the I<conditions> by inserting the given I<column>/I<value> pairs. Scalar references can be used to embed strings without further quoting into the resulting SQL statement. Returns the number of rows modified.
=back
=cut
sub update
{
my $self = shift;
my $table = shift;
my $conditions = shift;
my (@columns);
my ($statement, $rv);
my ($column, $value);
# ensure that connection is established
return unless $self -> connect ();
Easy/Import.pm view on Meta::CPAN
use DBIx::Easy;
sub new {
my $proto = shift;
my $class = ref($proto) || $proto;
my $self = {driver => shift, database => shift};
bless ($self, $class);
}
sub update {
my ($self, %params) = @_;
$self->_do_import(%params);
}
sub initialize {
my ($self, $file, $format) = @_;
my ($sep_char);
$format = uc($format);
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.415 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )