Couchbase Questions: C SDK

Have a Question? Get it answered by our community

fitz's picture
Asked 1 year 1 month ago
Latest activity 9 months 3 weeks ago

Assert failure in ringbuffer_consumed in C API 2.0.3.

(Moving over from forums/sdks/sdks)

I'm using the C API 2.0.3 in a loaded system talking to single none clustered Couchbase (1.8), we're occasionally getting crashes within the API. like the one below. There can be a few different flavours of the crash but most are similar. Also the...

jygan's picture
Asked 1 year 2 months ago
Latest activity 1 year 2 months ago

How do I auto increase document ID with c lib?

Hi, guys:
I'm trying to add doc by lcb_store, is there any way to auto increase doc id so I don't have to generate unique doc id in my code? right now, i need to provide _key which will be stored as doc id.
bool CouchbaseHandler::addData(string _key,string _value)...

frank.s's picture
Asked 1 year 2 months ago
Latest activity 1 year 2 months ago

how to build an IO operations plugin?

I have built a libcouchbase wrapper for python which I am using in the Tornado framework. Tornado includes an ioloop for handling asynchronous events. For now I am calling lcb_wait() to complete libcouchbase operations, but I would like to start using it fully asynchronously, driven by the...

jygan's picture
Asked 1 year 3 months ago
Latest activity 1 year 3 months ago

question regarding lcb_wait and lcb_store

why we need call lcb_wait(instance); every time before operation like Add, get data, destroy instance?
how to implement timeout mechanism with lcb_wait(instance), any example?
according to http://www....

iamdodge's picture
Asked 1 year 3 months ago
Latest activity 1 year 3 months ago

libcouchbase C API without callbacks?

Since v1 of the API, the C libcouchbase has required errors and get results to call back to a function, and most other language APIs do this but PHP doesn't. Why is this? With MySQL you can just make function calls and get results back. I'm trying to use libcouchbase in a C++ app but I need to...

jygan's picture
Asked 1 year 3 months ago
Latest activity 1 year 3 months ago

question regarding C client library

I'm using libcouchbase, have couple questions here:
1. lcb_datatype_t is ENUM ? what is the possible value of lcb_datatype_t? i tried to use LCB_JSON, my code cannot be compile, cannot find this type. can anyone point out the definition of lcb_datatype_t?
typedef lcb_uint8_t...

naama's picture
Asked 1 year 4 months ago
Latest activity 1 year 4 months ago

Getting all bucket keys using the C library

Hello,
I'm using the C library to store and get data.
Couldn't find a way to retrieve all bucket data from the API. I would like to either get all keys (and values) or get all keys that start with a specific string.
Can anybody please help?
Thanks,
Naama

WickedCool's picture
Asked 1 year 5 months ago
Latest activity 1 year 4 months ago

libcouchbase_arithmetic

I am a trying to use the libcouchbase_arithmetic api to implement a simple counter program. But I am getting a LIBCOUCHBASE_ETMPFAIL error everytime I go to increment the counter.

typedef struct
...
swapmat's picture
Asked 1 year 5 months ago
Latest activity 1 year 5 months ago

TapClient C api

Hi,
I see that there is no C equivalent of the Java TapClient in libcouchbase.
Earlier versions (libmembase) had libmembase_tap_cluster.
Am I missing something?
If we want to use the Tap interface, is going to couchbase-java-client the only way left?
Thanks.

swapmat's picture
Asked 1 year 5 months ago
Latest activity 10 months 13 hours ago

Create view C api

Hi,

Can anyone point me to example code to create views using lcb_make_http_request?
I checked example/yajl/couchview.c but unfortunately I can't understand how to create views.

Thanks

Pages