graflo.architecture.evolution.aspects.sync¶
The sync aspect: a record's sync hash on the vertex types it owns.
The lift adds one reserved field, sync_hash, set_by: sync, to each type a
resource's sync block owns. A bulk load and a sync run write it; an upsert
sets it to null, so the next sync rewrites the record.
Modules:
| Name | Description |
|---|---|
plan |
Planning the sync aspect: a reserved |
Attributes¶
SYNC_HASH = 'sync_hash'
module-attribute
¶
__all__ = ['SYNC_HASH', 'plan_sync', 'sync_field']
module-attribute
¶
Functions:¶
plan_sync(manifest)
¶
The ops that give every type a resource owns a sync_hash.
Raises:
| Type | Description |
|---|---|
LiftError
|
no schema, or no resource declares a |
Source code in graflo/architecture/evolution/aspects/sync/plan.py
sync_field()
¶
sync_hash: a reserved digest of what the owner record wrote.