On Sun, May 3, 2009 at 7:48 PM, Darrell Huang <[email protected]> wrote: > If there's a C API, can you tell me how can I find it and use it? I've > looked in the whole directory of the CoucdDB source code but found nothing > about it. > Yours, > Darrell. >
CouchDB ships only with JavaScript access libraries. There are libraries in many languages, all of them are available through independent distribution channels. I'm not sure if there's a C library, but all access to CouchDB is via HTTP, so however you like to access HTTP from C will work. (The suggestion to use Curl is a good one). The only other part of the story is JSON parsing. In my limited research, yajl looked like a good library for that. I do think you'll end up needing to write most of the library yourself. Luckily, once you have the HTTP and JSON libraries linked in, the rest is just a matter of giving names to the various URL endpoints of the CouchDB API. Good luck and keep us posted! >> >> What are you talking about? Of course, there's a C API! :-) >> >> http://curl.haxx.se/libcurl/ >> >> cheers, >> hugs >> > > -- Chris Anderson http://jchrisa.net http://couch.io
