Skip to content
Snippets Groups Projects
Commit 4b0183f7 authored by Abel Ureta-Vidal's avatar Abel Ureta-Vidal
Browse files

added update_key_value method

parent 3b131965
No related branches found
No related tags found
No related merge requests found
...@@ -101,6 +101,29 @@ sub store_key_value { ...@@ -101,6 +101,29 @@ sub store_key_value {
return; return;
} }
=head2 update_key_value
Arg [1] : string $key
a key under which $value should be updated
Arg [2] : string $value
the value to update in the meta table
Example : $meta_container->update_key_value($key, $value);
Description: update a value in the meta container, accessable by a key
Returntype : none
Exceptions : none
Caller : ?
=cut
sub update_key_value {
my ( $self, $key, $value ) = @_;
my $sth = $self->prepare( "UPDATE meta SET meta_value = ? WHERE meta_key = ?" );
my $res = $sth->execute( $value, $key );
return;
}
# add well known meta info get-functions below # add well known meta info get-functions below
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment