Check if the database is locked
Closed this issue · 1 comments
Billos commented
Hello, I'm using an OPFS Database, and I need to quickly check if the database is already opened and locked.
Is there any way to do this, in a quicker way than trying to open it a second time, wait for the 6 tries and wait for an error ?
sgbeal commented
Not from within the library, no. You would need to use the OPFS APIs for that. SQLite has a long history of not exposing underlying filesystem details, beyond the file name, and the JS APIs purposesly continues that tradition.