CRUD for a bucket?

As a side note it would be nice if it were possible to just switch to another bucket rather than ‘shutdown’ and reconnect.

I see in the example (Java SDK) that a client is created like:
client = new CouchbaseClient(uris, “default”, “”);
This uses the “default” bucket. But what if the “default” bucket doesn’t exist? How is a bucket created? How do you detect if the bucket exists? How is it removed? How are properties of the bucket modified?
Thank you.

Hi,
So you have many ways to create buckets:

  1. Using the Web Console
  2. All the operation you do in the Web Console are available as REST API, documentation of this API is available here
    http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-resta
  3. You can do this using the ClusterManager class in Java. Take a look to this test that is a good starting point for this:
    https://github.com/couchbase/couchbase-java-client/blob/master/src/test/
    Regards