Thank you Jens for the tip... Our product is a programming language called Genero, it's neither Java nor C, it's a simple programming language designed for SQL. With our solution, you compile to our proprietary pcode then you execute on any platform we support with our virtual machine (like with java). Our VM is written in C and on Unix/Windows/MacOSX we can access different RDBMS databases through db client C APIs... We are now on mobile (iOS/Android), and we are looking for a cross-platform solution to access NoSQL mobile databases from our VM. I don't think we should have wrappers for all CBLite native APIs, as classes in our language. Our solution cannot be platform specific, and I suspect that CBLite Native APIs for iOS and Android are a bit different...
Why would the CBLite Native APIs be faster than the REST API? I thought the native APIs are built on top of the REST API... (I mean, the real native API of Couch* databases in REST, no?) Seb Le mercredi 5 mars 2014 16:06:25 UTC+1, Jens Alfke a écrit : > > > On Mar 5, 2014, at 6:06 AM, Sebastien Flaesch > <[email protected]<javascript:>> > wrote: > > Reading that documentation, I did not found how to send HTTP requests to > the local Couchbase lite > software component of a mobile application... > > > Get the internalURL property of the CBLManager instance, which is the root > URL of the REST API, and then send requests to it. > > I do not want to use the "Native APIs" (Java / Objective-C) ... > Is there no low-level way, using the C SDK for example? > > http://www.couchbase.com/autodocs/couchbase-c-client-2.2.0/lcb_make_http_request.3couchbase.html > Or is this only for Couchbase server client programming? > > > That’s for Couchbase Server. Completely different API, used for writing > app servers. > > I don’t really understand what you want. You want to use C, but talk to > the internal REST API? Why? I mean, you can, but it’s going to take a lot > of code and be lower performance than using the native APIs... > > —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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/1de69d64-5d81-4cf5-b63d-3d345cda197b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
