mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-08 16:10:09 +00:00
update pglite, use opfs
This commit is contained in:
@@ -16,6 +16,6 @@ export const createAndInitDb = async () => {
|
||||
},
|
||||
},
|
||||
)
|
||||
console.log('PGlite DB created')
|
||||
console.log('PGlite DB created in opfs-ahp://infio-db')
|
||||
return pg
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ worker({
|
||||
const { fsBundle, wasmModule, vectorExtensionBundlePath } =
|
||||
await loadPGliteResources()
|
||||
|
||||
db = await PGlite.create('idb://infio-db', {
|
||||
db = await PGlite.create('opfs-ahp://infio-db', {
|
||||
relaxedDurability: true,
|
||||
fsBundle: fsBundle,
|
||||
wasmModule: wasmModule,
|
||||
|
||||
Reference in New Issue
Block a user