WebAPI/DeviceIndexedDB: Difference between revisions

Line 31: Line 31:
     }
     }
   }
   }
The property named "deviceIndexedDB" defines permissions for access control of DeviceIndexedDB databases.  The children of "deviceIndexedDB" are names of databases.  Databases not in the children of a "deviceIndexedDB" of an App can not be accessed by the App.
The children of a database is names of data stores.  Data stores not in the children of a database can not be accessed by the App.  The "ObjectStore" property defines whether the App can read or read-write a data store.  If the value of "ObjectStore" is "none", it means the App can not read or write the data store, but it can access indices according setting in "index" child of the data store.
The "index" child of a data store defines how the App can access indices.  Indices not children of "index" property can not be accessed by the App.  The value of an index is a list of keys.  The App can only use keys in the list to query the index.  Basically, "index" property of a data store is only meaningful for the value of "ObjectStoe" is "none".
Confirmed users
398

edits