couchbase-analytics
    Preparing search index...

    Class Cluster

    Exposes the operations which are available to be performed against a cluster. Namely, the ability to access to Databases as well as performing management operations against the cluster.

    Index

    Methods

    • Shuts down this cluster object. Cleaning up all resources associated with it.

      Returns void

    • Volatile: This API is subject to change at any time.

      Creates a database object reference to a specific database.

      Parameters

      • databaseName: string

        The name of the database to reference.

      Returns Database

    • Executes a query against the Analytics cluster.

      Parameters

      • statement: string

        The Analytics SQL++ statement to execute.

      • Optionaloptions: QueryOptions

        Optional parameters for this operation.

      Returns Promise<QueryResult>

    • Replace the credential used for subsequent HTTP requests, for example to refresh a JWT or rotate a client certificate. The new credential must be the same kind as the current one and takes effect on the next request.

      Parameters

      Returns void

      If credential is null/undefined or is a different kind than the current credential.