Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CollectionManager

CollectionManager allows the management of collections within a Bucket.

Hierarchy

  • CollectionManager

Index

Methods

createCollection

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

createScope

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

dropCollection

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

dropScope

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

getAllScopes

  • Returns all configured scopes along with their collections.

    Parameters

    Returns Promise<ScopeSpec[]>

Generated using TypeDoc