microsoft / cordova-plugin-indexedDB

Cordova plugin for IndexedDB
Other
64 stars 17 forks source link

Composite/complex/compound keyPath or index not supported #2

Open kingIZZZY opened 10 years ago

kingIZZZY commented 10 years ago

Can't pass an array as primary key into IDBDatabase.createObjectStore 2nd param 'keyPath' (and thus neither into any of the querying functions)

Can't pass an array into createIndex 2nd parameter

Composite keyPath is supported by most (all?) other browsers except IE. Note that Microsoft is behind this plugin.

More info: search stackoverflow about IndexedDB complex/composite/compound key & indexes Also relevant: https://social.msdn.microsoft.com/Forums/windowsapps/en-US/dbf2fd2d-a8ca-4228-8a49-3948d44f7e26/indexeddb-and-complex-keypaths-for-index?forum=winappswithhtml5

vladimir-kotikov commented 9 years ago

This probably should be fixed by https://github.com/MSOpenTech/cordova-plugin-indexedDB/pull/8. Looking on integrating that PR.