David Leadbeater > Net-CouchDb-0.02 > Net::CouchDb::Database

Download:
Net-CouchDb-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  4
Open  1
View Bugs
Report a bug
Module Version: 0.01   Source  

NAME ^

Net::CouchDb::Database - Interface to a CouchDb database

VERSION ^

Version 0.01

SYNOPSIS ^

Represents a single couchdb database.

METHODS ^

new($couchdb, $database)

This should be created via Net::CouchDb's database method.

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

database_info

Return the database information (doc_count, update_seq).

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.