DB-CouchDB-Schema

 view release on metacpan or  search on metacpan

lib/DB/CouchDB.pm  view on Meta::CPAN

257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
}
 
=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



( run in 0.269 second using v1.01-cache-2.11-cpan-e5176c747c2 )