Called when documents are added or updated. Documents are batched by table for performance. On initial load with thousands of documents, you get one callback per table instead of thousands of individual callbacks.
Called when documents are deleted. Deletions are batched by table for performance.
OptionalonOptional callback for conflict detection. Called when PouchDB detects conflicting versions of a document during sync.
Array of conflict information
OptionalonOptional callback for sync progress events. Called during sync operations to report progress.
OptionalonOptional callback for error events.
Fires for two kinds of error:
kind: "decrypt" — a stored document failed to decrypt
(wrong password, corrupted ciphertext).kind: "write" — a document in a bulk write (see EncryptedPouch.putAll)
was rejected by PouchDB (e.g. a revision conflict).Use the kind discriminator to handle each case.
Array of error events
Callbacks for document changes, deletions, conflicts, sync events, and errors