Skip to content

Commit

Permalink
Remove withExtensions static method
Browse files Browse the repository at this point in the history
  • Loading branch information
samwillis committed Jul 29, 2024
1 parent c3ff9a4 commit 4793530
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/pglite/src/pglite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -761,22 +761,6 @@ export class PGlite implements PGliteInterface {
this.#globalNotifyListeners.delete(callback);
}

/**
* Create a new PGlite instance with extensions on the Typescript interface
* (The main constructor does enable extensions, however due to the limitations
* of Typescript, the extensions are not available on the instance interface)
* @param dataDir The directory to store the database files
* Prefix with idb:// to use indexeddb filesystem in the browser
* Use memory:// to use in-memory filesystem
* @param options Optional options
* @returns A new PGlite instance with extensions
*/
static withExtensions<O extends PGliteOptions>(
options?: O,
): PGlite & PGliteInterfaceExtensions<O["extensions"]> {
return new PGlite(options) as any;
}

/**
* Dump the PGDATA dir from the filesystem to a gziped tarball.
* @returns The tarball as a File object where available, and fallback to a Blob
Expand Down

0 comments on commit 4793530

Please sign in to comment.