couchbaselabs/CouchCocoa — pull request #18 by timrobinson (2012-04-04 16:10:55+00:00)
Title: Support for change filters through CouchChangeTracker

Hi all,

I'd find it useful to be able to monitor database changes at a lower level and to be able to specify the name of a filter function (and to pass query parameters to that function).

I made CouchChangeTracker non-internal and extended it to notify a delegate of changes, instead of calling back to the database. The CouchChangeTracker can now accept the filter name and parameters; parsing of the changes response JSON now lives here and not in CouchDatabase.

CouchDatabase's interaction with CouchChangeTracker remains the same, i.e. db.tracksChanges still works.

Regards,
Tim