CouchbaseBucketManager

Class exposing the various available management operations that can be performed on a bucket.

package

Couchbase

Methods

Returns all the design documents for this bucket.

getDesignDocuments() : mixed

Response

mixed

Inserts a design document to this bucket. Failing if a design document with the same name already exists.

insertDesignDocument(mixed $name, mixed $data) 
throws
returns

true

Arguments

$name

mixed

Name of the design document.

$data

mixed

The design document data.

Inserts a design document to this bucket. Overwriting any existing design document with the same name.

upsertDesignDocument(mixed $name, mixed $data) 
returns

true

Arguments

$name

mixed

Name of the design document.

$data

mixed

The design document data.

Retrieves a design documents from the bucket.

getDesignDocument(mixed $name) : mixed

Arguments

$name

mixed

Name of the design document.

Response

mixed

Deletes a design document from the bucket.

removeDesignDocument(mixed $name) : mixed

Arguments

$name

mixed

Name of the design document.

Response

mixed

Retrieves bucket status information

info() : mixed

Returns an associative array of status information as seen by the cluster for this bucket. The exact structure of the returned data can be seen in the Couchbase Manual by looking at the bucket /info endpoint.

Response

mixed

The status information.