Class CollectionManager

CollectionManager allows the management of collections within a Bucket.

Hierarchy

  • CollectionManager

Methods

  • Creates a collection in a scope.

    Deprecated

    Use the other overload instead.

    Parameters

    Returns Promise<void>

  • Creates a collection in a scope.

    Parameters

    • collectionSpec: ICollectionSpec

      Specifies the settings for the new collection.

    • Optional options: CreateCollectionOptions

      Optional parameters for this operation.

    • Optional callback: NodeCallback<void>

      A node-style callback to be invoked after execution.

    Returns Promise<void>

  • Creates a new scope.

    Parameters

    • scopeName: string

      The name of the new scope to create.

    • Optional options: CreateScopeOptions

      Optional parameters for this operation.

    • Optional callback: 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.

    • Optional options: DropCollectionOptions

      Optional parameters for this operation.

    • Optional callback: 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.

    • Optional options: DropScopeOptions

      Optional parameters for this operation.

    • Optional callback: NodeCallback<void>

      A node-style callback to be invoked after execution.

    Returns Promise<void>

Generated using TypeDoc