Home | Trees | Indices | Help |
---|
|
object --+ | Database
Object that abstract access to a CouchDB database A Database object can act as a Dict object.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Constructor for Database
|
repr(x)
|
Get database information
|
compact database
|
Test if document exists in a database
|
Get document from database Args:
|
Get document from database Args:
|
Execute a list function on the server and return the response. If the response is json it will be deserialized, otherwise the string will be returned. Args:
|
Execute a show function on the server and return the response. If the response is json it will be deserialized, otherwise the string will be returned. Args:
|
Get all documents from a database This method has the same behavior as a view. `all_docs( **params )` is the same as `view('_all_docs', **params)` and `all_docs( by_seq=True, **params)` is the same as `view('_all_docs_by_seq', **params)` You can use all(), one(), first() just like views Args: @param by_seq: bool, if True the "_all_docs_by_seq" is passed to couchdb. It will return an updated list of all documents. @return: list, results of the view |
Get last revision from docid (the '_rev' member)
|
Save a document. It will use the `_id` member of the document or request a new uuid from CouchDB. IDs are attached to documents on the client side because POST has the curious property of being automatically retried by proxies in the event of network segmentation and lost responses. (Idee from `Couchrest <http://github.com/jchris/couchrest/>`)
|
bulk save. Modify Multiple Documents With a Single Request
|
bulk save. Modify Multiple Documents With a Single Request
|
bulk delete. It adds '_deleted' member to doc then uses bulk_save to save them.
|
bulk delete. It adds '_deleted' member to doc then uses bulk_save to save them.
|
delete a document or a list of documents @param doc: str or dict, document id or full doc. @return: dict like: .. code-block:: python {"ok":true,"rev":"2839830636"} |
copy an existing document to a new id. If dest is None, a new uuid will be requested
|
get view results from database. viewname is generally a string like `designname/viewname". It return an ViewResults object on which you could iterate, list, ... . You could wrap results in wrapper function, a wrapper function take a row as argument. Wrapping could be also done by passing an Object in obj arguments. This Object should have a `wrap` method that work like a simple wrapper function. @param view_name, string could be '_all_docs', '_all_docs_by_seq', 'designname/viewname' if view_name start with a "/" it won't be parsed and beginning slash will be removed. Usefull with c-l for example. @param schema, Object with a wrapper function
|
get adhoc view results. Like view it reeturn a ViewResult object. |
Search. Return results from search. Use couchdb-lucene with its default settings by default. |
return a ViewResults objects containing all documents. This is a shorthand to view function. |
return a ViewResults objects containing all documents. This is a shorthand to view function. |
Add attachement to a document. All attachments are streamed.
|
delete attachement to the document
|
get attachment in a document
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri May 4 11:48:40 2012 | http://epydoc.sourceforge.net |