Skip to main content

Crate appcore_sync_sqlite

Crate appcore_sync_sqlite 

Source
Expand description

Bounded SQLite persistence for Runtime-owned synchronization state.

Structs§

ObjectChangesPageV1
Incremental page cursor plus current values, not historical values as of the cursor. Values are observed atomically within this page; a newer object revision may exceed through.
ObjectHeadV1
Stable database identity plus its current object revision.
ObjectWriteIntentV1
Bounded immutable materialization intent, scoped to an installation.
ObjectWriteResultV1
Durable result of an object mutation or exact idempotent replay.
ObjectsPageV1
Bounded lexicographic scan of current objects, including tombstones.
OpaqueObjectRecordV1
A record and its technical revision; digests are integrity checks, not authentication.
OpaqueObjectV1
Opaque provider-owned record. Metadata is opaque too; callers own its confidentiality.
SqliteBackupReport
Evidence returned after an integrity-checked online backup.
SqliteOpaqueObjectStoreV1
Canonical opaque objects, independent of application schemas and filesystem publication.
SqlitePairedBackupReport
Evidence returned after an integrity-checked backup of both attached databases.
SqliteReplicationLog
SQLite-backed implementation of the AppCore replication-log contract.
SqliteSyncCheckpointStore
SQLite-backed per-peer synchronization checkpoints.
SqliteSyncConfig
Bounded configuration for one SQLite sync database.
SqliteSyncConflictStore
SQLite-backed bounded conflict registry. It records decisions, never applies them.
SqliteSyncHealth
Result of a provider integrity inspection.
SqliteSyncOutbox
SQLite-backed bounded synchronization outbox.
SqliteSyncStore
Shared owner of one bounded SQLite sync database.
SqliteSyncTombstone
One opaque Runtime sync deletion marker.
SqliteSyncTombstoneStore
Bounded SQLite tombstone storage for conservative deletion replication.
SqliteSyncWork
Bounded provider-owned unit of work; never exposes SQL or a connection. Callbacks must be short and must not reenter this store or wait for network I/O. Filesystem writes are outside this transaction and require a recovery journal.

Enums§

ObjectRevisionV1
Compare-and-set precondition; no implicit last-writer-wins mutation exists.
SqliteSyncError
Typed provider error whose diagnostics never contain paths, SQL or payloads.

Constants§

SQLITE_SYNC_SCHEMA_V1
Original internal SQLite schema version.
SQLITE_SYNC_SCHEMA_V2
Current internal SQLite schema with bounded outbox retry metadata.
SQLITE_SYNC_SCHEMA_V3
Schema with durable bounded conflicts and resolutions.
SQLITE_SYNC_SCHEMA_V4
Schema with canonical versioned opaque objects sharing sync transactions.
SQLITE_SYNC_SCHEMA_V5
Schema that records whether pending messages live in the provider or a separate queue file.

Functions§

sqlite_sync_capability_descriptor_v1
Returns the conservative provider-independent guarantees for SQLite sync.

Type Aliases§

SqliteSyncResult
Result produced by the SQLite sync provider.