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