update, use json database replace pglite, for sync

This commit is contained in:
duanfuxiang
2025-04-24 16:08:44 +08:00
parent 10970a8803
commit 96b9fcef3b
20 changed files with 863 additions and 229 deletions

View File

@@ -1,6 +1,5 @@
// @ts-nocheck
import { PGlite } from '@electric-sql/pglite'
import { PGliteWorkerOptions, worker } from '@electric-sql/pglite/worker'
import { pgliteResources } from '../database/pglite-resources'
@@ -43,7 +42,7 @@ const loadPGliteResources = async (): Promise<{
}
worker({
async init(options: PGliteWorkerOptions) {
async init(options: PGliteWorkerOptions, ) {
let db: PGlite;
try {
const { fsBundle, wasmModule, vectorExtensionBundlePath } =