Class

ViewIndexManager

ViewIndexManager

ViewIndexManager is an interface which enables the management of view indexes on the cluster.

Methods

# async dropDesignDocument(designDocName, optionsopt, callbackopt) → {Promise.<DesignDocument>}

Parameters:
Name Type Attributes Description
designDocName string
options * <optional>
timeout integer <optional>
callback DropDesignDocumentCallback <optional>

View Source viewindexmanager.js, line 186

Promise.<DesignDocument>

# async getAllDesignDocuments(optionsopt, callbackopt) → {Promise.<Array.<DesignDocument>>}

Parameters:
Name Type Attributes Description
options * <optional>
timeout integer <optional>
callback GetAllDesignDocumentsCallback <optional>

View Source viewindexmanager.js, line 37

CouchbaseError

Promise.<Array.<DesignDocument>>

# async getDesignDocument(designDocName, optionsopt, callbackopt) → {Promise.<DesignDocument>}

Parameters:
Name Type Attributes Description
designDocName string
options * <optional>
timeout integer <optional>
callback GetDesignDocumentCallback <optional>

View Source viewindexmanager.js, line 88

Promise.<DesignDocument>

# async publishDesignDocument(designDocName, optionsopt, callbackopt) → {Promise.<boolean>}

Parameters:
Name Type Attributes Description
designDocName string
options * <optional>
timeout number <optional>
callback PublishDesignDocumentCallback <optional>

View Source viewindexmanager.js, line 231

Promise.<boolean>

# async upsertDesignDocument(designDoc, optionsopt, callbackopt) → {Promise.<DesignDocument>}

Parameters:
Name Type Attributes Description
designDoc DesignDocument
options * <optional>
timeout integer <optional>
callback UpsertDesignDocumentCallback <optional>

View Source viewindexmanager.js, line 133

Promise.<DesignDocument>