Couchbase C Client
2.5.6
|
Clear the contents of a bucket.
Flush is useful for development environments (for example clearing a bucket before running tests).
Functions | |
lcb_error_t | lcb_cbflush3 (lcb_t instance, const void *cookie, const lcb_CMDCBFLUSH *cmd) |
uncommitted More... | |
lcb_error_t | lcb_flush3 (lcb_t instance, const void *cookie, const lcb_CMDFLUSH *cmd) |
Typedefs | |
typedef lcb_CMDBASE | lcb_CMDCBFLUSH |
typedef lcb_RESPBASE | lcb_RESPCBFLUSH |
typedef lcb_CMDBASE | lcb_CMDFLUSH |
typedef lcb_RESPSERVERBASE | lcb_RESPFLUSH |
lcb_error_t lcb_cbflush3 | ( | lcb_t | instance, |
const void * | cookie, | ||
const lcb_CMDCBFLUSH * | cmd | ||
) |
uncommitted
Flush a bucket This function will properly flush any type of bucket using the REST API via HTTP. This may be used in a manner similar to the older lcb_flush3().
The callback invoked under LCB_CALLBACK_CBFLUSH will be invoked with either a success or failure status depending on the outcome of the operation. Note that in order for lcb_cbflush3() to succeed, flush must already be enabled on the bucket via the administrative interface.
instance | the library handle |
cookie | the cookie passed in the callback |
cmd | empty command structure. Currently there are no options for this command. |
lcb_error_t lcb_flush3 | ( | lcb_t | instance, |
const void * | cookie, | ||
const lcb_CMDFLUSH * | cmd | ||
) |