Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CollectionManager

CollectionManager allows the management of collections within a Bucket.

Hierarchy

  • CollectionManager

Index

Methods

  • 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>

  • Returns all configured scopes along with their collections.

    Parameters

    Returns Promise<ScopeSpec[]>

Generated using TypeDoc