microsoft / cordova-plugin-indexedDB

Cordova plugin for IndexedDB
Other
64 stars 17 forks source link

Is Auto increment of keys implemented ? #4

Open codemonkey1066 opened 10 years ago

codemonkey1066 commented 10 years ago

Store created with. db.createObjectStore("myStore",{keyPath:"myKey",autoIncrement :true});

for store.put({value:"someValue"}); No data appears to be inserted. but store.put({myKey:1,value:"someValue"}); will insert data, but having to set the key value defeats the purpose of having an autoIncrement key.

vladimir-kotikov commented 9 years ago

There is a number of autoincrement-related issues already fixed in upstream shim repo: https://github.com/axemclion/IndexedDBShim/search?q=autoincrement&type=Issues

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