Android: Querying from Remote CouchDB Server

67 views
Skip to first unread message

Rajagopal V

unread,
Sep 28, 2014, 3:03:27 AM9/28/14
to mobile-c...@googlegroups.com
Hi,

I have a remote couchdb instance with some views created in it. If I were to query that from CBL Android, how would I do it using the native API?

 From some older postings, there seemed to be an CouchServer iOS class that would allow you to connect to a remote couchdb server but I cant find that in the current codebase or find an equivalent one for Android. (see https://groups.google.com/forum/#!searchin/mobile-couchbase/couchserver/mobile-couchbase/t3-lXqCyGK8/Q9QTA7FFIhMJ)

Should I just use the REST API to connect to the remote couchdb instance? 

Thanks
Raja

Jens Alfke

unread,
Sep 28, 2014, 12:43:01 PM9/28/14
to mobile-c...@googlegroups.com
There's not currently an API to query a remote server. You'll need to make a REST call yourself. (We're experimenting with a RemoteQuery class, but it's not ready for release yet.)

—Jens 
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/f8abffd8-d65d-4523-bf38-1b0a69eabde5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Traun Leyden

unread,
Sep 29, 2014, 12:39:54 PM9/29/14
to mobile-c...@googlegroups.com
@Rajagopal - if you do end up rolling your own in the meantime, you should check out Ektorp, since it will probably make your life easier when talking to CouchDB from your app.

Reply all
Reply to author
Forward
0 new messages