NAME
Net::CouchDb::Database - Interface to a CouchDb database
VERSION
Version 0.01
SYNOPSIS
Represents a single couchdb database.
This should be created via Net::CouchDb.
METHODS
new
get($id [, rev => 'revision'])
Get a document with a specific ID, takes additional parameters for revision.
If rev is provided returns a list of the specified revisions,
put($doc)
Add or update a named document.
(put and post are similar, put is only useful if you want to ensure any document inserted already has an id specified.)
post($doc)
Add or update a document.
delete($id)
Delete a document with the given ID
all_docs
Return a list of all documents.
call($method, $uri, $data)
Make a REST/JSON call, automatically adding the correct database to the URI. See Net::CouchDb::call for parameters.
AUTHOR
David Leadbeater, <dgl at dgl dot cx>
COPYRIGHT & LICENSE
Copyright 2007 David Leadbeater, all rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.