Skip to content
Discussion options

You must be logged in to vote

Does that solve all cases for web or is there another possible storage engine?

So just to be clear, wasm here refers to the fact that SQLite is compiled to a WebAssembly bundle. So the snippet from the linked discussion should work correctly (using WasmDatabase.probe + deleteDatabase actually works for all storage modes drift can use on the web, with your setup you'd get OPFS on Firefox and IndexedDB on other browsers).

I'm trying to keep the api in drift_flutter somewhat minimal, but I agree that a cross-platform way to delete databases might be helpful. I'll take a look!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@johannesstricker
Comment options

Answer selected by johannesstricker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants