Skip to content

createOpfsRepackedPGlite

createOpfsRepackedPGlite<TExtensions>(options): Promise<OpfsRepackedPGlite<TExtensions>>

Defined in: packages/pglite-opfs-repacked/src/pglite-factory.ts:43

Construct the only supported OPFS-repacked/PGlite pairing.

PGlite always awaits the filesystem sync. Physical durability is selected once, here, by the VFS option and is never delegated to the host boolean. A strict sync completes successful database initialization before return.

TExtensions extends Extensions = Extensions

CreateOpfsRepackedPGliteOptions<TExtensions>

Promise<OpfsRepackedPGlite<TExtensions>>