rattail.datasync.watchers
¶
DataSync Watchers
- class rattail.datasync.watchers.DataSyncWatcher(config, key, dbkey=None, **kwargs)[source]¶
Base class for all DataSync watchers.
- get_changes(lastrun)[source]¶
This must be implemented by the subclass. It should check the source database for pending changes, and return a list of
rattail.db.model.DataSyncChange
instances representing the source changes.