Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #28

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/powersync-attachments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The `AttachmentQueue` class is used to manage and sync attachments in your app.

### Example

In this example, the user captures photos when checklist item are be completed as part of an Inspection workflow.
In this example, the user captures photos when checklist items are completed as part of an inspection workflow.

The schema for the `checklist` table:

Expand Down Expand Up @@ -194,7 +194,8 @@ Any `AttachmentRecord` with `id` in first set of IDs retrieved from the watch qu

The `AttachmentQueue` sets up two watch queries on the `attachments` table, one for records in `QUEUED_UPLOAD` state and one for `QUEUED_DOWNLOAD` state.

In addition to watching for changes, the `AttachmentQueue` also trigger a sync every few seconds. This will retry any failed uploads/downloads, in particular after the app was offline
In addition to watching for changes, the `AttachmentQueue` also triggers a sync every few seconds. This will retry any failed uploads/downloads, in particular after the app was offline.

By default, this is every 30 seconds, but can be configured by setting `syncInterval` in the `AttachmentQueue` constructor options, or disabled by setting the interval to `0`.

### Uploading
Expand Down
Loading