You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Alistair Cunningham <ac...@integrics.com> on 2010/12/14 15:02:43 UTC

Preferred C/C++ client library

Hello,

Can anyone please point me towards the best API library to use for C or 
C++ clients? Pillowtalk seems to be abandoned at an early stage. The 
Glib library seems to be more complete, but I can't find any useful API 
documentation.

-- 
Alistair Cunningham
+1 888 468 3111
+44 20 799 39 799
http://integrics.com/

Re: Preferred C/C++ client library

Posted by Neville Franks <su...@surfulater.com>.
Wednesday, December 15, 2010, 1:02:43 AM, you wrote:

AC> Hello,

AC> Can anyone please point me towards the best API library to use for C or
AC> C++ clients? Pillowtalk seems to be abandoned at an early stage. The 
AC> Glib library seems to be more complete, but I can't find any useful API
AC> documentation.

I've not looked at any of the C++ Libs, however they are probably only
a fairly thin layer on top of the REST interface. Inadequate docs are
always frustrating and all too common. Even the CouchApp Javascript
library suffers from this.

Is there any way you can use Javascript and then interface to that
from your C++ code. That's what I'd be trying to do as JS is a better
fit for CouchDB. And yes I'm a C++ dev, but trying to move more to JS.

--
Best regards,
  Neville Franks, http://www.surfulater.com http://blog.surfulater.com
 


Re: Preferred C/C++ client library

Posted by Rodrigo Moya <ro...@canonical.com>.
On Tue, 2010-12-14 at 09:36 -0500, Alistair Cunningham wrote:
> On 14/12/10 09:08, Dale Ragan wrote:
> > Hello Alistair,
> >
> > There's a GLib-based API to talk to CouchDB located here:
> > http://git.gnome.org/browse/couchdb-glib/
> >
> > Regards,
> >
> > Dale
> 
> Yes, that was the one I was looking at. Unfortunately there seems to be 
> a lack of documentation and examples. Do you know of any?
> 
the documentation is included in the source code, so you you just need
to install gtk-doc-tools and run autogen.sh/configure with
--enable-gtk-doc, that will build HTML for the API.

It's still not fully complete though


Re: Preferred C/C++ client library

Posted by Alistair Cunningham <ac...@integrics.com>.
On 14/12/10 11:24, Dale Ragan wrote:
> Yeah, I haven't seen anything like that yet, but I'll keep my eyes peeled.
>   You could contact Rodrigo and I think he also monitors this mailing list,
> but I could be wrong.

I've emailed Rodrigo, and he says:

"it is built with the sources, so if you have the original tarball:

$ ./autogen.sh --enable-gtk-doc

then make in 'doc' subdir should build HTML for the documentation."

which works! Thanks for your help.

Alistair Cunningham
+1 888 468 3111
+44 20 799 39 799
http://integrics.com/

Re: Preferred C/C++ client library

Posted by Dale Ragan <da...@sinesignal.com>.
Yeah, I haven't seen anything like that yet, but I'll keep my eyes peeled.
 You could contact Rodrigo and I think he also monitors this mailing list,
but I could be wrong.

-Dale

> On 14/12/10 10:01, Dale Ragan wrote:
>> Sure, here's the author's blog[1] who talk about other projects that
>> probably use it.  You could find good usage of it there and there's an
>> example in the source[2].
>>
>> [1]: http://blogs.gnome.org/rodrigo/category/couchdb/
>> [2]:
>> http://git.gnome.org/browse/couchdb-glib/tree/tests/test-list-databases.c
>>
>> Regards,
>>
>> Dale
>
> Thanks, those are useful links. What's really required though is more
> formal documentation of each function call in the library. For example,
> what parameters does couchdb_document_info_get_docid() require? What
> value does it return? What errors can it raise? I see a reference to a
> data structure "CouchdbDocumentInfo". What fields does it contain? When
> do these need to be set? And so on...
>
> Alistair Cunningham
> +1 888 468 3111
> +44 20 799 39 799
> http://integrics.com/
>



Re: Preferred C/C++ client library

Posted by Alistair Cunningham <ac...@integrics.com>.
On 14/12/10 10:01, Dale Ragan wrote:
> Sure, here's the author's blog[1] who talk about other projects that
> probably use it.  You could find good usage of it there and there's an
> example in the source[2].
>
> [1]: http://blogs.gnome.org/rodrigo/category/couchdb/
> [2]:
> http://git.gnome.org/browse/couchdb-glib/tree/tests/test-list-databases.c
>
> Regards,
>
> Dale

Thanks, those are useful links. What's really required though is more 
formal documentation of each function call in the library. For example, 
what parameters does couchdb_document_info_get_docid() require? What 
value does it return? What errors can it raise? I see a reference to a 
data structure "CouchdbDocumentInfo". What fields does it contain? When 
do these need to be set? And so on...

Alistair Cunningham
+1 888 468 3111
+44 20 799 39 799
http://integrics.com/

Re: Preferred C/C++ client library

Posted by Dale Ragan <da...@sinesignal.com>.
Sure, here's the author's blog[1] who talk about other projects that
probably use it.  You could find good usage of it there and there's an
example in the source[2].

[1]: http://blogs.gnome.org/rodrigo/category/couchdb/
[2]:
http://git.gnome.org/browse/couchdb-glib/tree/tests/test-list-databases.c

Regards,

Dale

> On 14/12/10 09:08, Dale Ragan wrote:
>> Hello Alistair,
>>
>> There's a GLib-based API to talk to CouchDB located here:
>> http://git.gnome.org/browse/couchdb-glib/
>>
>> Regards,
>>
>> Dale
>
> Yes, that was the one I was looking at. Unfortunately there seems to be
> a lack of documentation and examples. Do you know of any?
>
> Alistair Cunningham
> +1 888 468 3111
> +44 20 799 39 799
> http://integrics.com/
>



Re: Preferred C/C++ client library

Posted by Alistair Cunningham <ac...@integrics.com>.
On 14/12/10 09:08, Dale Ragan wrote:
> Hello Alistair,
>
> There's a GLib-based API to talk to CouchDB located here:
> http://git.gnome.org/browse/couchdb-glib/
>
> Regards,
>
> Dale

Yes, that was the one I was looking at. Unfortunately there seems to be 
a lack of documentation and examples. Do you know of any?

Alistair Cunningham
+1 888 468 3111
+44 20 799 39 799
http://integrics.com/

Re: Preferred C/C++ client library

Posted by Dale Ragan <da...@sinesignal.com>.
Hello Alistair,

There's a GLib-based API to talk to CouchDB located here: 
http://git.gnome.org/browse/couchdb-glib/

Regards,

Dale

> Hello,
>
> Can anyone please point me towards the best API library to use for C or
> C++ clients? Pillowtalk seems to be abandoned at an early stage. The
> Glib library seems to be more complete, but I can't find any useful API
> documentation.
>
> --
> Alistair Cunningham
> +1 888 468 3111
> +44 20 799 39 799
> http://integrics.com/
>



Re: Preferred C/C++ client library

Posted by Alistair Cunningham <ac...@integrics.com>.
On 14/12/10 19:40, Matt Jennings wrote:
> I'm using couchdbpp with success in a current project:
> http://code.google.com/p/couchdbpp/

I'm a little put off by the 0.0.1 version number and lack of 
documentation. How mature is it?

Alistair Cunningham
+1 888 468 3111
+44 20 799 39 799
http://integrics.com/

Re: Preferred C/C++ client library

Posted by Matt Jennings <je...@gmail.com>.
I'm using couchdbpp with success in a current project:
http://code.google.com/p/couchdbpp/

 
On Dec 14, 2010, at 7:02 AM, Alistair Cunningham wrote:

> Hello,
> 
> Can anyone please point me towards the best API library to use for C or C++ clients? Pillowtalk seems to be abandoned at an early stage. The Glib library seems to be more complete, but I can't find any useful API documentation.
> 
> -- 
> Alistair Cunningham
> +1 888 468 3111
> +44 20 799 39 799
> http://integrics.com/