Methods
# async buildDeferredIndexes(bucketName, optionsopt, callbackopt) → {Promise.<Array.<string>>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
bucketName |
string | ||
options |
* |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
BuildDeferredIndexesCallback |
<optional> |
Promise.<Array.<string>>
# async createIndex(bucketName, indexName, fields, optionsopt, callbackopt) → {Promise.<boolean>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
bucketName |
string | ||
indexName |
string | ||
fields |
Array.<string> | ||
options |
* |
<optional> |
|
ignoreIfExists |
boolean |
<optional> |
|
deferred |
boolean |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
CreateQueryIndexCallback |
<optional> |
Promise.<boolean>
# async createPrimaryIndex(bucketName, optionsopt, callbackopt) → {Promise.<boolean>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
bucketName |
string | ||
options |
* |
<optional> |
|
ignoreIfExists |
boolean |
<optional> |
|
deferred |
boolean |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
CreatePrimaryIndexCallback |
<optional> |
Promise.<boolean>
# async dropIndex(bucketName, indexName, optionsopt, callbackopt) → {Promise.<boolean>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
bucketName |
string | ||
indexName |
string | ||
options |
* |
<optional> |
|
ignoreIfNotExists |
boolean |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
DropQueryIndexCallback |
<optional> |
QueryIndexNotFoundError
Promise.<boolean>
# async dropPrimaryIndex(bucketName, optionsopt, callbackopt) → {Promise.<boolean>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
bucketName |
string | ||
options |
* |
<optional> |
|
ignoreIfNotExists |
boolean |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
DropPrimaryIndexCallback |
<optional> |
QueryIndexNotFoundError
Promise.<boolean>
# async getAllIndexes(bucketName, optionsopt, callbackopt) → {Promise.<Array.<QueryIndex>>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
bucketName |
string | ||
options |
* |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
GetAllIndexesCallback |
<optional> |
Promise.<Array.<QueryIndex>>
# async watchIndexes(bucketName, indexNames, duration, optionsopt, callbackopt) → {Promise.<boolean>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
bucketName |
string | ||
indexNames |
Array.<string> | ||
duration |
number | ||
options |
* |
<optional> |
|
watchPrimary |
integer |
<optional> |
|
callback |
WatchIndexesCallback |
<optional> |
Promise.<boolean>