Couchbase Questions: C SDK

Have a Question? Get it answered by our community

venk_couchbase's picture
Asked 9 months 2 weeks ago
Latest activity 9 months 2 weeks ago

Getting SERVERERROR when I tried communicating with Memcached C Library using memcached_add()

I am trying to establish connection from Memcached C Client to Couchbase server. I see connection object created successfully ( Memcached object created Successfully:: 0x1176010 ), but I am getting the SERVER ERROR when I tried memcached_add() with 10 bytes of data.
May I know...

jygan's picture
Asked 9 months 2 weeks ago
Latest activity 6 months 3 weeks ago

C API to access view

what's the C API to access view. Has libcouchbase_make_couch_request been deprecated?
I found sample here

jim.yefeng's picture
Asked 9 months 3 weeks ago
Latest activity 9 months 2 weeks ago

why couchbase c sdk can not connect to a host list if the first host is not in the same cluster with others ?

I have 3 hosts with couchbase installed
1. The first, make the host1, host2 and host3 in the same cluster2,
then removal the host1 from cluster and reblance, now :
host1 is in not in cluster,
host2 and host3 in cluster2

2. Specify the hosts in C SDK as follows,...

fitz's picture
Asked 9 months 3 weeks ago
Latest activity 6 months 2 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 11 months 3 days ago
Latest activity 10 months 4 weeks 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 11 months 2 weeks ago
Latest activity 11 months 2 weeks 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 11 months 3 weeks ago
Latest activity 11 months 3 weeks 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 11 months 4 weeks ago
Latest activity 11 months 3 weeks 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 12 months 18 hours ago
Latest activity 11 months 4 weeks 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 1 month ago
Latest activity 1 year 1 month ago

Getting all bucket keys using the C library

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?