FEATURE REQUEST: Externalize Sync Function

I am sure this must have been suggested many, many times, but please externalize the sync function in future versions. It would really make more sense to provide the path to a file that contains the sync function than having to put it inline in the configuration file. My sync function is huge, and now that I have multiple databases, its getting very hard to manage.

I created a feature request for this here: https://github.com/couchbase/sync_gateway/issues/1274

One advantage to doing this is that if you have lots of databases with the same sync function you can avoid repeating your code.

Awesome - thank you :slight_smile: