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

Function doPostInitialSync

examples/linearlite/src/sync.ts:45–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 })
44
45 const doPostInitialSync = async () => {
46 if (
47 !hasIssuesAtStart &&
48 issueShapeInitialSyncDone &&
49 commentShapeInitialSyncDone &&
50 !postInitialSyncDone
51 ) {
52 postInitialSyncDone = true
53 updateSyncStatus(`initial-sync`, `Creating indexes...`)
54 await postInitialSync(pg)
55 postInitialSyncDoneResolver()
56 }
57 }
58
59 const issueUrl = new URL(`${ELECTRIC_URL}/v1/shape`)
60 if (ELECTRIC_SOURCE_SECRET) {

Callers 1

startSyncToDatabaseFunction · 0.85

Calls 2

postInitialSyncFunction · 0.90
updateSyncStatusFunction · 0.85

Tested by

no test coverage detected