MCPcopy Create free account
hub / github.com/electric-sql/electric / startSync

Function startSync

examples/linearlite/src/sync.ts:22–25  ·  view source on GitHub ↗
(pg: PGliteWithExtensions)

Source from the content-addressed store, hash-verified

20type PGliteWithExtensions = PGliteWithLive & PGliteWithSync
21
22export async function startSync(pg: PGliteWithExtensions) {
23 await startSyncToDatabase(pg)
24 startWritePath(pg)
25}
26
27async function startSyncToDatabase(pg: PGliteWithExtensions) {
28 // Check if there are any issues already in the database

Callers 1

App.tsxFile · 0.90

Calls 2

startSyncToDatabaseFunction · 0.85
startWritePathFunction · 0.85

Tested by

no test coverage detected