| Class | CouchObject::Database |
| In: |
lib/couch_object/database.rb
|
| Parent: | Object |
A CouchDb database object
| server | [RW] |
Open a connection to the database at uri, where uri is a full uri like: localhost:5984/foo
Send a DELETE request to the path which is relative to the database path so calling with with "bar" as the path in the "foo_db" database will call host:port/foo_db/bar. Returns a Response object
Send a GET request to the path which is relative to the database path so calling with with "bar" as the path in the "foo_db" database will call host:port/foo_db/bar. Returns a Response object
Send a POST request to the path which is relative to the database path so calling with with "bar" as the path in the "foo_db" database will call host:port/foo_db/bar. The post body is the payload Returns a Response object
Send a PUT request to the path which is relative to the database path so calling with with "bar" as the path in the "foo_db" database will call host:port/foo_db/bar. The put body is the payload Returns a Response object