flutter_offline_sync_core
library
Functions
-
openConnection({String? dbPath})
→ LazyDatabase
-
Opens the sync database at a stable path shared by the foreground app
isolate and the background WorkManager isolate. WAL mode is required:
under the default rollback-journal mode, two isolates/processes with
independent connections to the same file will lock each other out.
WAL supports concurrent readers + a single writer safely.
-
parseCrossJobDependencies(String? json)
→ List<CrossJobDependency>
-
Typedefs
-
$$SyncJobsTableCreateCompanionBuilder
= SyncJobsCompanion Function({Value<DateTime> createdAt, required String feature, Value<int> id, required String idempotencyKey, Value<String?> meta, required String screen, required JobStatus status, Value<DateTime> updatedAt})
-
-
$$SyncJobsTableProcessedTableManager
= ProcessedTableManager<_$SyncDatabase, $SyncJobsTable, SyncJob, $$SyncJobsTableFilterComposer, $$SyncJobsTableOrderingComposer, $$SyncJobsTableAnnotationComposer, $$SyncJobsTableCreateCompanionBuilder, $$SyncJobsTableUpdateCompanionBuilder, (SyncJob, $$SyncJobsTableReferences), SyncJob, PrefetchHooks Function({bool syncStepsRefs})>
-
-
$$SyncJobsTableUpdateCompanionBuilder
= SyncJobsCompanion Function({Value<DateTime> createdAt, Value<String> feature, Value<int> id, Value<String> idempotencyKey, Value<String?> meta, Value<String> screen, Value<JobStatus> status, Value<DateTime> updatedAt})
-
-
$$SyncStepsTableCreateCompanionBuilder
= SyncStepsCompanion Function({Value<int> attempt, Value<DateTime?> completedAt, Value<String?> conflictData, Value<String> dependsOn, Value<String> externalDependsOn, Value<int> id, required String input, required int jobId, Value<String?> lastError, Value<DateTime?> nextRetryAt, Value<String?> output, Value<int> sortIndex, required StepStatus status, required String stepKey, required String taskType})
-
-
$$SyncStepsTableProcessedTableManager
= ProcessedTableManager<_$SyncDatabase, $SyncStepsTable, SyncStep, $$SyncStepsTableFilterComposer, $$SyncStepsTableOrderingComposer, $$SyncStepsTableAnnotationComposer, $$SyncStepsTableCreateCompanionBuilder, $$SyncStepsTableUpdateCompanionBuilder, (SyncStep, $$SyncStepsTableReferences), SyncStep, PrefetchHooks Function({bool jobId})>
-
-
$$SyncStepsTableUpdateCompanionBuilder
= SyncStepsCompanion Function({Value<int> attempt, Value<DateTime?> completedAt, Value<String?> conflictData, Value<String> dependsOn, Value<String> externalDependsOn, Value<int> id, Value<String> input, Value<int> jobId, Value<String?> lastError, Value<DateTime?> nextRetryAt, Value<String?> output, Value<int> sortIndex, Value<StepStatus> status, Value<String> stepKey, Value<String> taskType})
-