Jifty-DBI
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Jifty/DBI/Handle.pm view on Meta::CPAN
Takes a hash with columns: C<table>, C<column>, C<value>, C<primary_keys>, and
C<is_sql_function>. The first two should be obvious; C<value> is where you
set the new value you want the column to have. The C<primary_keys> column should
be the lvalue of Jifty::DBI::Record::PrimaryKeys(). Finally ,
C<is_sql_function> is set when the Value is a SQL function. For example, you
might have C<< value => 'PASSWORD(string)' >>, by setting C<is_sql_function> to true,
that string will be inserted into the query directly rather then as a binding.
=cut
sub update_record_value {
my $self = shift;
my %args = (
table => undef,
column => undef,
is_sql_function => undef,
primary_keys => undef,
@_
);
return 1 unless grep {defined} values %{ $args{primary_keys} };
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.015 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )