treojs / treo

Consistent API to IndexedDB
http://treojs.com
MIT License
258 stars 18 forks source link

createObjectStore doesn't support autoIncrement. #12

Closed dfbaskin closed 10 years ago

dfbaskin commented 10 years ago

The code to create the object store prevents adding an auto increment key:

      versionSchema.stores.forEach(function(store) {
        db.createObjectStore(store.name, { keyPath: store.opts.key });
      });

Reference: https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase.createObjectStore#Parameters

alekseykulikov commented 10 years ago

Added in 0.2.0: https://github.com/alekseykulikov/treo/blob/master/History.md#020--2014-09-08