Questions tagged [couchbase-sync-gateway]

Couchbase Sync Gateway is an add-on that enables Couchbase Server 2.0 and later to act as a replication endpoint for Couchbase Lite. Sync Gateway runs an HTTP listener process that provides a passive replication endpoint and uses a Couchbase Server bucket as persistent storage for all database documents.

Couchbase Sync Gateway is an add-on that enables Couchbase Server 2.0 and newer versions to act as a replication endpoint for Couchbase Lite. Sync Gateway runs an HTTP listener process that provides a passive replication endpoint and uses a Couchbase Server bucket as persistent storage for all database documents.

Resources:

230 questions
1
vote
1 answer

How to Dynamically change sync function in sync gateway couchbase

Is there a way I can dynamically change sync function for eg. Lets ssy my documents have a field ID and I want to get documents belonging to a particular ID so ID is my variable here. eg. below is a sync function for ID=4 "sync": function (doc)…
Legendary_Hunter
  • 1,040
  • 2
  • 10
  • 29
1
vote
1 answer

Getting data from couchbase bucket with a variable

there is something I wonder: In my map reduce function, can I take "parent" property as a variable ? Like that : function (doc, meta) { var key,value; if(doc.type == "mainForums" && doc.parent == **VAR**){ key = [doc.type,doc.id] value…
hbc
  • 43
  • 9
1
vote
2 answers

Unable to create a session via CouchBase sync gateway admin REST API

I am working on implementing custom authentication using cookie Auth. So, I was playing around the sync gateway REST API to create user and session. I could successfully create the user but unable to create session via /_session API. Following are…
Dnavir
  • 556
  • 3
  • 11
1
vote
1 answer

Multiple requests on PouchDB sync

I am using PouchDB 5.3 with Couchbase Sync Gateway 1.2, with the sync function. It works without any problem when I use a small set of records (20 .. 50). But I have problems when I use 3K, because the first time that try to synchronize, it has…
todotresde
  • 1,770
  • 2
  • 19
  • 25
1
vote
1 answer

How to replicate only the intersection of certain channels in Couchbase Mobile

I have four channels in my application: A, B, C, D. Some application users are only interested in documents contained in both channels A and B only. Also can be expressed as: A ∩ B. Others may be interested in a different combination like: A ∩ B ∩…
1
vote
0 answers

Adding parameters to a user created via the sync gateway REST API

The couchbase sync gateway REST API allows for the inclusion of an email address in the JSON that is PUT at the registration URI _user/. In my use case I'd like to implement phone number registration via SMS and to include the phone number in…
mikesol
  • 1,177
  • 1
  • 11
  • 20
1
vote
1 answer

React-Native Android Image Source from Couchbase Lite

Using this couchbase module with react-native Android provides a great API to get and put to the local couchbase-lite database. However, what I want to do is use a thumbnail attachment of a document as the URI for the source attribute of the Image…
1
vote
1 answer

Sync android application to couchbase server on localhost

I am trying to connect my android app with couchbase server on localhost I have initialized database and manager as follows: after initializing database i am calling startSync() function accepting parameter of…
1
vote
1 answer

How to configure sync_gateway with Couchbase server

I am trying to connect sync gateway to the couchbase server. By following the below Link , but the problem is I am getting the error when run the command: $ ./sync_gateway config.json as shown the screenshot attach below:
Pallavi Nikumbh
  • 298
  • 4
  • 19
1
vote
1 answer

PouchDB with Couchbase replication

I'm trying to create an offline client application with PouchDB local document storage which will be syncing its data to a couchbase server. I maintain three instances of couchbase to form a cluster. For the sync I want to use the sync gateway that…
tbo
  • 9,398
  • 8
  • 40
  • 51
1
vote
1 answer

Couchbase lite - Android sync issue

I have created a Ubuntu VM running Couchbase server with a ships databucket with a number of documents loaded in to it. I am trying to test a simple pull of this data bucket into a Couchbase lite database running in an Android emulator. I'm having…
PDStat
  • 5,513
  • 10
  • 51
  • 86
1
vote
1 answer

is Couchbase Lite update views(indexes) automatically when we insert new docs ? or we need to do it manually?

i started researching on mobile embed databases and i came across couchbase , awesome.still i didn't understand some of the concepts , one of them is how to work with views and queries. they are saying that views are indexes. but they never…
1
vote
1 answer

Couchbase Sync Function: How to detect the current access type?

I am using Couchbase's Sync Gateway and want to restrict the access to the documents. Furthermore, the individual restriction for each document should take into account what is currently happening: The document is just being read or it is either…
Bastian
  • 4,638
  • 6
  • 36
  • 55
1
vote
1 answer

Couchbase Sync Gateway User Password Reset

I have a Windows Server 2012 running Couchbase Server and Sync Gateway. I am able to access the Sync Gateway locally, but am unsure how to reset a user account password. I have been able to add a new user via the Admin API on port 4985.
1
vote
1 answer

Implement presence with Pouchdb and Couchbase (w. Sync Gateway)

I am thinking of using Pouchdb and Couchbase (w. Sync Gateway) to implement an online presence system in the style similar to what could be done in the Firebase tutorial linked…
brian
  • 217
  • 2
  • 11