File-Properties
view release on metacpan or search on metacpan
lib/File/Properties/Database.pm view on Meta::CPAN
181182183184185186187188189190191192193194195196197198199200201
# 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.266 second using v1.01-cache-2.11-cpan-1dc43b0fbd2 )