jensarps/IDBWrapper — pull request #46 by pbenschop (2014-02-02 01:47:25+00:00)
Title: Capability to detect whether a database already exists without creating it

Hi Jens, I am with GreatVines in Portland, USA. We used IDBWrapper to create a mock implementation of the Salesforce SmartStore (a database component in the Salesforce Mobile SDK). Since SmartStore allows you to check for the physical presence of a "soup" (represented as a store in IndexedDB) without creating it, we added the capability to the openDB method to abort the transaction if the intent is to only check whether a database exists (without actually creating it). See the added cancelIfNew and CancelMsg options. Maybe this feature could be added to IDBWrapper.

Peter