File-Properties
view release on metacpan or search on metacpan
lib/File/Properties/Database.pm view on Meta::CPAN
# Prepare for insertion
my $sth = $self->dbi->prepare($sqlc);
# Execute insertion
return $self->_executedata($sth, $data);
}
# ----------------------------------------------------------------------------
# Update rows in table
# ----------------------------------------------------------------------------
sub update {
my $self = shift;
my $tbnm = shift; # Table name
my $opts = shift; # Update options
# Determine column names for update
my $clnm = $self->_optioncols($tbnm, $opts);
# Determine data for update
my $data = _optiondata($tbnm, $clnm, $opts);
# Start transaction (autocommit off)
$self->dbi->begin_work or
( run in 0.838 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )