106#define LCB_N1XSPEC_F_PRIMARY (1 << 16)
113#define LCB_N1XSPEC_F_DEFER (1 << 17)
119#define LCB_N1XSPEC_T_DEFAULT 0
120#define LCB_N1XSPEC_T_GSI 1
121#define LCB_N1XSPEC_T_VIEW 2
123struct lcb_RESPN1XMGMT_st;
131typedef void (*lcb_N1XMGMTCALLBACK)(
lcb_INSTANCE *instance,
int cbtype,
const struct lcb_RESPN1XMGMT_st *resp);
157typedef struct lcb_RESPN1XMGMT_st {
182 "lcb_http must be used directly");
192 "lcb_http must be used directly");
200 "lcb_http must be used directly");
213 "lcb_http must be used directly");
259 "lcb_http must be used directly");
Main header file for Couchbase.
lcb_STATUS
Error codes returned by the library.
Definition error.h:213
struct lcb_st lcb_INSTANCE
Library handle representing a connection to a cluster and its data buckets.
Definition couchbase.h:35
struct lcb_RESPQUERY_ lcb_RESPQUERY
Opaque query response structure.
Definition couchbase.h:2845
lcb_N1XSPEC spec
The index to operate on.
Definition ixmgmt.h:144
lcb_N1XMGMTCALLBACK callback
Callback to be invoked when operation is complete.
Definition ixmgmt.h:149
size_t nspec
Number of specs.
Definition ixmgmt.h:228
lcb_U32 timeout
Maximum amount of time to wait (microseconds).
Definition ixmgmt.h:234
lcb_N1XMGMTCALLBACK callback
Callback to invoke once the indexes have been built or the timeout has been reached.
Definition ixmgmt.h:248
lcb_U32 interval
How often to check status (microseconds).
Definition ixmgmt.h:240
const lcb_N1XSPEC *const * specs
Input specs.
Definition ixmgmt.h:226
const char * rawjson
Raw JSON returned from server.
Definition ixmgmt.h:49
const char * keyspace
Keyspace or "bucket" of the index.
Definition ixmgmt.h:60
const char * state
Output parameter only.
Definition ixmgmt.h:68
const char * fields
Actual index text.
Definition ixmgmt.h:79
unsigned ixtype
Type of this index, Can be LCB_N1XSPEC_T_DEFAULT for the default server type, or an explicit LCB_N1XS...
Definition ixmgmt.h:102
const char * nspace
'namespace'.
Definition ixmgmt.h:64
unsigned flags
Modifiers for the index itself.
Definition ixmgmt.h:95
const char * cond
Indexing condition.
Definition ixmgmt.h:84
const char * name
Name of the index.
Definition ixmgmt.h:53
size_t nspecs
Number of specs.
Definition ixmgmt.h:168
const lcb_RESPQUERY * inner
Inner N1QL response.
Definition ixmgmt.h:171
const lcb_N1XSPEC *const * specs
A list of pointers to specs.
Definition ixmgmt.h:166
Various utility functions.