IndexedDB IDBKeyRange with compound indexes RRS feed

  • Question

  • Using WinJS and indexedDB...

    I am able to create index with compound indexes without exception thrown -

     store.createIndex("typelonlat", ["type", "lon", "lat"], { unique: true });

    However "DataError" exception is thrown when  trying to create a  IDBKeyRange using compound indexes

      keyRange = IDBKeyRange.bound(["low type", "low lon bound", "low lat bound"], ["upper type", "upper lon bound", "upper lat bound"]);

    Is compound indexes not supported for IDBKeyRange? or am I missing something?

    Sunday, July 7, 2013 12:33 AM