On May 19, 2015, at 8:55 AM, gaurav...@gmail.com wrote:
New to CouchBase Lite. Have few very basic queries:
- Is there a JS API to access CouchBase Lite DB via Phonegap plugin on iOS ? The kind of JS APIs Pouch DB exposes ?
- http://developer.couchbase.com/mobile/get-started/get-started-mobile/phonegap/index.html This link seems to talk about a phonegap plugin but when I see the plugin code it does do much;
how then the ToDo application uses the get and put function which get internally map to iOS native CouchBase Lite API functions?
- What is the underlying storage mechanism ? By looking at the API it looks like it uses CoreData internally ?
On May 20, 2015, at 8:36 AM, gaurav...@gmail.com wrote:- JS Wrappers internally call Rest APIs which internally call Cardova Plugin which uses the CouchbaseLite and CouchbaseLiteListener frameworks to update data in SQLLite storage. Is this understanding correct ?
- So in a Cardova application for every REST API invoked an equivalent plugin code that gets called. If that is the case how do the app differentiate when it needs to use the REST API to call the server or it needs to divert the REST API calls to the Cardova Plugin .
On May 21, 2015, at 1:56 AM, gaurav...@gmail.com wrote:- So the CouchbaseLiteListener internally creates a HTTP server on the device itself and all the REST API calls are submitted to this local HTTP server on the device itself.The actual magic of inserting/updating data happens inside the CouchbaseLiteListener .
- Why CouchBaseLite chose this round about way of invoking the plugin ? Wouldn't it have been easier if they would have provided a one to one mapping of the JS APIs in the pluging itself.
On May 25, 2015, at 12:50 AM, gaurav...@gmail.com wrote:So basically we want to do sync in native and read via JS/REST APIs from with in the WebView concurrently. However while the native code is doing write ; we were not able to read via the REST API/JS via Cordova plugin.
- How to do concurrent read and write with in WebView via REST APIs/JS ? Is it supported ? So basically if the concurrent native sync and read via web view does not work than we would want to have concurrent read and write using JS only ?
https://github.com/couchbase/couchbase-lite-ios/issues/357 by using the CBLManager.excludedFromBackup
On May 28, 2015, at 8:58 AM, gaurav...@gmail.com wrote:Is there any way in the REST API to configure for it to be not backed up on iCloud or we need to do it via the native code as given in herehttps://github.com/couchbase/couchbase-lite-ios/issues/357 by using the CBLManager.excludedFromBackup
On Jun 3, 2015, at 5:05 AM, gaurav...@gmail.com wrote:I didn't find any REST API documentation for querying a Design Doc. How do we query using a Design doc using REST API after we have created the Design Doc