Re: [w3c/IndexedDB] API to enumerate databases (#31)

@aliams Thank you for the clarifying question! I was (unclearly) trying to point out that an implementation of @Gilead's `hasDatabase()` suggestion would require the same locking as `indexedDB.open`, so applications might as well use `indexedDB.open` instead.

I think it makes sense to specify `getDatabaseNames` without any consistency guarantees. Specifically, I'd only guarantee that at a quiescent time (there is no IndexedDB connection to any database in the current origin), the result would be consistent with all the successful open / delete requests. Otherwise, the database list might contain databases that were already deleted and might miss databases that were created, since the last quiescent time. The latter condition aims formalize the idea that an implementation will do its best to make the result useful, but we could go for something weaker/stronger if it's easier to test.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/31#issuecomment-318466864

Received on Thursday, 27 July 2017 19:46:58 UTC