Couchbase C Client
2.5.6
|
Remove documents from the cluster.
Functions | |
lcb_error_t | lcb_remove3 (lcb_t instance, const void *cookie, const lcb_CMDREMOVE *cmd) |
Spool a removal of an item. More... | |
Typedefs | |
typedef lcb_CMDBASE | lcb_CMDREMOVE |
Command for removing an item from the server. More... | |
typedef lcb_RESPBASE | lcb_RESPREMOVE |
Response structure for removal operation. More... | |
lcb_error_t lcb_remove3 | ( | lcb_t | instance, |
const void * | cookie, | ||
const lcb_CMDREMOVE * | cmd | ||
) |
Spool a removal of an item.
instance | the handle |
cookie | pointer to associate with the request |
cmd | the command |
### Request
### Response
The following operation-specific error codes are returned in the callback
typedef lcb_CMDBASE lcb_CMDREMOVE |
Command for removing an item from the server.
The lcb_CMDREMOVE::cas field may be set to the last CAS received from a previous operation if you wish to ensure the item is removed only if it has not been mutated since the last retrieval
typedef lcb_RESPBASE lcb_RESPREMOVE |
Response structure for removal operation.
The lcb_RESPREMOVE::cas field may be used to check that it no longer exists on any node's storage using the lcb_endure3_ctxnew() function. You can also use the lcb_MUTATION_TOKEN (via lcb_resp_get_mutation_token)
The lcb_RESPREMOVE::rc field may be set to LCB_KEY_ENOENT if the item does not exist, or LCB_KEY_EEXISTS if a CAS was specified and the item has since been mutated.