Is possible to connect sync gateway with mysql database?

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.

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.

1 Like

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

1 Like