Is possible to connect sync gateway with mysql database?

query

#1

Hi,
I am developing mobile and web application with SG and CB. I need to add some document into mysql database. Is it possible?

Thank you.


#2

Not through Sync Gateway. You’d need to write your own code to connect to the MySQL database. Check out the documentation on SG web-hooks.


#3

Changes feed is good option over web hooks. Major advantage is Sequential processing. if I am understanding this right, you don’t need to process all documents, may be some type of documents.

In this case, you can add special channel through sync gateway or by APIs. which therefore, you could use this channels to get document through changes feed as filter.

https://developer.couchbase.com/documentation/mobile/current/guides/sync-gateway/server-integration/index.html