Menu
  • HOME
  • TAGS

Couchbase Mobile (Sync Gateway) sample TODOlite application doesn't replicate; complains _facebook doesn't exist

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...

Is Couchbase an ordered key-value store?

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 use couchbase lite

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.

How do I sync Couchbase-Lite Android with CouchDB?

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...

Integrating xamarin, CouchBaseLite, MVVMCross and SyncGateway such that View changes with database

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...

Couchbase mobile replication through REST-API

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...

Sync with Couchbase Lite through Couchbase Sync Gateway doesn’t see any documents (Channel issue?)

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...

better explain couchbase lite map function rules and common mistakes

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...

Populating a tableView from a couchbase live query

swift,couchbase-lite

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...

Couchbase Document ID Requirements and limitations

couchbase,couchbase-lite

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...

Instruction on how to use POST PUT GET DELETE, Couchbase Lite on Cordova

cordova,couchbase-lite

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...

Using Couchbase Lite to upload activity logs

couchbase-lite

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); ...

Sync Gateway creates one document per change when used with Couchbase-lite

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...