django
django_spire.contrib.sync.django
__all__ = ['DjangoSyncLock', 'DjangoSyncStorage', 'HttpTransport', 'SyncClient', 'SyncServer', 'SyncableMixin', 'SyncableModelService', 'SyncableQuerySet', 'build_graph', 'process_sync_request', 'register_m2m_signals', 'seed_clock', 'sync_bypass']
module-attribute
HttpTransport
Bases: Transport
Source code in django_spire/contrib/sync/database/transport/http.py
exchange
Source code in django_spire/contrib/sync/database/transport/http.py
SyncClient
Source code in django_spire/contrib/sync/django/client.py
DjangoSyncLock
Source code in django_spire/contrib/sync/django/lock.py
acquire
Source code in django_spire/contrib/sync/django/lock.py
hold
release
Source code in django_spire/contrib/sync/django/lock.py
SyncableMixin
Bases: Model
Source code in django_spire/contrib/sync/django/mixin.py
id = models.UUIDField(primary_key=True, default=(uuid.uuid4), editable=False)
class-attribute
instance-attribute
sync_field_timestamps = models.JSONField(default=dict, editable=False)
class-attribute
instance-attribute
sync_field_last_modified = models.BigIntegerField(default=0, editable=False, db_index=True)
class-attribute
instance-attribute
objects = SyncableQuerySet.as_manager()
class-attribute
instance-attribute
Meta
abstract = True
class-attribute
instance-attribute
save
Source code in django_spire/contrib/sync/django/mixin.py
get_dirty_fields
refresh_from_db
configure
classmethod
get_clock
classmethod
Source code in django_spire/contrib/sync/django/mixin.py
get_syncable_field_names
classmethod
SyncableQuerySet
Bases: QuerySet
bulk_create
Source code in django_spire/contrib/sync/django/queryset.py
bulk_update
Source code in django_spire/contrib/sync/django/queryset.py
SyncServer
Source code in django_spire/contrib/sync/django/server.py
handle
serve
Source code in django_spire/contrib/sync/django/server.py
SyncableModelService
set_m2m
staticmethod
Source code in django_spire/contrib/sync/django/service.py
DjangoSyncStorage
Source code in django_spire/contrib/sync/django/storage/facade.py
delete_many
get_after_keys
get_changed_since
Source code in django_spire/contrib/sync/django/storage/facade.py
get_deletes_since
get_checkpoint
get_records
get_syncable_models
save_checkpoint
build_graph
Source code in django_spire/contrib/sync/django/graph.py
sync_bypass
seed_clock
Source code in django_spire/contrib/sync/django/seed.py
register_m2m_signals
Source code in django_spire/contrib/sync/django/signals.py
process_sync_request
Source code in django_spire/contrib/sync/django/views.py
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | |