couchbase
    Preparing search index...

    Class BucketManager

    BucketManager provides an interface for adding/removing/updating buckets within the cluster.

    Index

    Methods

    • Drops an existing bucket.

      Parameters

      • bucketName: string

        The name of the bucket to drop.

      • Optionaloptions: DropBucketOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Flushes the bucket, deleting all the existing data that is stored in it.

      Parameters

      • bucketName: string

        The name of the bucket to flush.

      • Optionaloptions: FlushBucketOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Updates the settings for an existing bucket.

      Parameters

      • settings: BucketSettings

        The new settings to use for the bucket.

      • Optionaloptions: UpdateBucketOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>