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 193

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 39

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 91

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 241

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 139

Promise.<DesignDocument>