DB-CouchDB-Schema
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/DB/CouchDB.pm view on Meta::CPAN
}
=head2 update_doc
Updates a doc in the database.
my $result = $db->update_doc($docname, $doc) #returns a DB::CouchDB::Result object
=cut
sub update_doc {
my $self = shift;
my $name = shift;
my $doc = shift;
my $jdoc = $self->json()->encode($doc);
return DB::CouchDB::Result->new($self->_call(PUT => $self->_uri_db_doc($name), $jdoc));
}
=head2 delete_doc
Deletes a doc in the database. you must supply a rev parameter to represent the
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.572 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )