AttachmentQueueOptions
Experimental Alpha
Configuration options for AttachmentQueue.
This is currently experimental and may change without a major version bump.
Properties
| Property | Type | Description |
|---|---|---|
archivedCacheLimit? | number | Alpha Maximum archived attachments before cleanup. Default: 100 |
db | CommonPowerSyncDatabase | Alpha PowerSync database instance |
downloadAttachments? | boolean | Alpha Whether to automatically download remote attachments. Default: true |
errorHandler? | AttachmentErrorHandler | Alpha Handler for upload, download and delete errors |
localStorage | LocalStorageAdapter | Alpha Local storage adapter for file persistence |
logger? | PowerSyncLogger | Alpha Logger instance. Defaults to db.logger |
remoteStorage | RemoteStorageAdapter | Alpha Remote storage adapter for upload/download operations |
syncIntervalMs? | number | Alpha Periodic polling interval in milliseconds for retrying failed uploads/downloads. Default: 30000 |
syncThrottleDuration? | number | Alpha Throttle duration in milliseconds for the reactive watch query that detects attachment changes. Prevents rapid-fire syncs during bulk changes. Default: 30 |
tableName? | string | Alpha Name of the table to store attachment records. Default: 'ps_attachment_queue' |
watchAttachments | (onUpdate, signal) => void | Alpha Callback for monitoring attachment changes in your data model |