Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Is Auto increment of keys implemented ? #4

Open
codemonkey1066 opened this issue Nov 14, 2014 · 1 comment
Open

Is Auto increment of keys implemented ? #4

codemonkey1066 opened this issue Nov 14, 2014 · 1 comment

Comments

@codemonkey1066
Copy link

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
Copy link
Contributor

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 #8. Looking on integrating that PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants