electric-sql / electric-sql/pglite
Add static method to delete databases
Open
- Dominant language
- TypeScript
- Stars
- 16k
- Forks
- 442
- Avg merge
- 20h 19m
- Merged PRs (30d)
- 7
Description
With v0.2 we will have this api as an options for specifying a VFS:
```js
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:
```js
import { IdbFs } from "@electric-sql/pglite";
IdbFs.delete('my-database')
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.