rattail.db.model.datasync
¶
Data Models for DataSync Daemon
- class rattail.db.model.datasync.DataSyncChange(**kwargs)[source]¶
Represents a change obtained from a DataSync watcher thread, and destined for one or more DataSync consumers.
- batch_id¶
ID of the “source” batch to which this change belongs, as determined by the datasync watcher.
- batch_sequence¶
Sequence number for this change, within the source batch, as determined by the datasync watcher.
- consumer¶
Configured key of the DataSync consumer for which this change is destined. This may be NULL, in which case the change will go to all consumers configured as not “isolated”.
- deletion¶
Whether the change represents a deletion; defaults to
False
.
- obtained¶
Date and time when the change was obtained from the watcher thread.
- payload_key¶
Key for the payload (presumably unique when combined with
payload_type
) represented by the change, within the watched database.
- payload_type¶
The “type” of payload represented by the change, e.g. ‘Person’. The
payload_key
should be unique for a given payload type.
- source¶
Key of the watcher from which this change was obtained.