Thanks to visit codestin.com
Credit goes to docs.couchbase.com

couchbase
    Preparing search index...

    Class CollectionManager

    CollectionManager allows the management of collections within a Bucket.

    Index

    Methods

    • Creates a new scope.

      Parameters

      • scopeName: string

        The name of the new scope to create.

      • Optionaloptions: CreateScopeOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Drops a collection from a scope.

      Parameters

      • collectionName: string

        The name of the collection to drop.

      • scopeName: string

        The name of the scope containing the collection to drop.

      • Optionaloptions: DropCollectionOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Drops a scope.

      Parameters

      • scopeName: string

        The name of the scope to drop.

      • Optionaloptions: DropScopeOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Updates a collection in a scope.

      Parameters

      • collectionName: string

        The name of the collection to update.

      • scopeName: string

        The name of the scope containing the collection.

      • settings: UpdateCollectionSettings

        The settings to update on the collection.

      • Optionaloptions: UpdateCollectionOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>