Class CouchRest::Server
In: lib/couchrest/core/server.rb
Parent: Object

Methods

Attributes

available_databases  [RW] 
uri  [RW] 
uuid_batch_count  [RW] 

Public Class methods

Public Instance methods

Checks that a database is set as available

Example:

@couch.available_database?(:default)

Lists all "available" databases. An available database, is a database that was specified as avaiable by your code. It allows to define common databases to use and reuse in your code

Returns a CouchRest::Database for the given name

Creates the database if it doesn‘t exist

Lists all databases on the server

Adds a new available database and create it unless it already exists

Example:

@couch = CouchRest::Server.new @couch.define_available_database(:default, "tech-blog")

GET the welcome message

Retrive an unused UUID from CouchDB. Server instances manage caching a list of unused UUIDs.

Restart the CouchDB instance

[Validate]