pglite icon indicating copy to clipboard operation
pglite copied to clipboard

Add static method to delete databases

Open samwillis opened this issue 6 months ago • 1 comments

With v0.2 we will have this api as an options for specifying a VFS:

import { IdbFs } from "@electric-sql/pglite";
const pg = new PGlite({
  fs: new IdbFs("my-database")
})

We should add a delete static method to the VFS interface that deletes the database from the underlying storage:

import { IdbFs } from "@electric-sql/pglite";

IdbFs.delete('my-database')

samwillis avatar Aug 02 '24 15:08 samwillis