couchbase,couchbase-lite,couchbase-sync-gateway
I solved it. The reason is that I ran sync_gateway without enabling Facebook registration support. Normally this is done in config.json file. In fact, this configuration file was supplied in ToDoLite all along. It is crucial that you launch sync_gateway with this configuration file. The README actually states this but...
database,couchbase,key-value-store,couchbase-lite
Query efficiency is correlated with the construction of the views that are added to the server. Couchbase/Couchbase Lite only stores the indexes specified and generated by the programmer in these views. As Couchbase rebalances it moves documents between nodes, so it seems impractical that key order could be guaranteed or...
ios,objective-c,couchbase-lite
Yes, Couchbase Lite on a mobile device can sync to Couchbase Server via Sync Gateway. No additional framework is needed, it's all built in.
android,couchdb,couchbase-lite
Figured it out: the database url needs to point to the actual database, not just to the CouchDB root. I thought I had tested that earlier, but I think at that time I still had authentication issues so I had dismissed that solution too early. The correct line for couchDbUrl...
xamarin,monodroid,mvvmcross,couchbase-lite,couchbase-sync-gateway
I would perhaps just use the CouchBaseLite Xamarin Component. If you are wanting to access this in your PCL Core project you will probably have to create some sort of wrapper around the component and inject it properly into each platform. You can use the MvvmCross plugins wiki to get...
cordova,rest,replication,couchbase,couchbase-lite
Which versions of Couchbase Lite and Sync Gateway are you using? I believe the behavior has improved in version 1.1 of each. Specifically, Sync Gateway now returns 403 Forbidden instead of 400 Bad Request when a client attempts to upload a design document. The Couchbase Lite replicator will keep going...
ios,couchbase,couchbase-lite,couchbase-sync-gateway
as this was re-posted from our communities portal, I will close out this issue here with a re-post in response and continued questions should be on our communities portal. Based on your description of the issue and configuration, you still need to configure your Sync Gateway to let it know...
android,couchbase-lite,couchbase-view
What "pure" means is that you cannot use outside state in your map function. All your determinations must be based solely on the parameters that were passed into it. Your map function does not violate this. I think the missing piece in your understanding is the difference between storage and...
CBLUITableSource is a convenience api to make it easier to work with live queries and table views on iOS. Check out this repo to see how to set up a table view with CBLUITableSource. If you need more control over the UI update when the result of the query changes...
Quoting from the Couchbase Developer guide these are the only limits on keys: Keys are strings, typically enclosed by quotes for any given SDK. No spaces are allowed in a key. Separators and identifiers are allowed, such as underscore: ‘person_93847’. A key must be unique within a bucket; if you...
Based on the alert values, there is no error (first alerted value is null) & the returned data is an object. You can alert "through" the object like this config.db.post(composition, function(err, ok) { for (var i in ok) { //if (ok.hasOwnProperty(i)) { alert(ok[i]); //} } } Also if you take...
I think I managed to achieve that by adding a filter to my (client) DB that filters out deleted revisions. In .NET, it looks like: myDatabase.SetFilter("prevent-deletion", (rev, filterParams) => !rev.IsDeletion); ...
couchbase,couchbase-lite,couchbase-sync-gateway
In a distributed system, especially used for iOS/Android and other embedded devices it's important to keep the full set of properties in each revision. Using the patch/diff approach in such system could lead to more inconsistencies, for example an update would only make sense if there were some previous state...