MCPcopy Index your code
hub / github.com/TanStack/db / flushDiffRecords

Function flushDiffRecords

packages/powersync-db-collection/src/powersync.ts:369–380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367 }
368
369 async function flushDiffRecords(): Promise<void> {
370 await database
371 .writeTransaction(async (context) => {
372 await flushDiffRecordsWithContext(context)
373 })
374 .catch((error) => {
375 database.logger.error(
376 `An error has been detected in the sync handler`,
377 error,
378 )
379 })
380 }
381
382 // We can use this directly if we want to pair a flush with dispose+recreate diff trigger.
383 async function flushDiffRecordsWithContext(

Callers 1

startFunction · 0.85

Calls 1

Tested by

no test coverage detected