We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
put
I've made use of this behaviour in the vanilla IndexedDB interface and found it very useful.
When creating/updating records on an object store using IDBObjectStore.put, the onsuccess event handler will be passed the record's key as result:
IDBObjectStore.put
onsuccess
objectStore.put(record).onsuccess = function(evt) { console.log(evt.target.result); // record's key };
It would be helpful, for myself at least, if treo implemented this behaviour perhaps something like this:
treoStore.put(record, function(key) { console.log(key); // record's key });
What are your thoughts?
The text was updated successfully, but these errors were encountered:
Agreed that it's useful. Especially with autoIncrement, will be implemented in 0.4.0
autoIncrement
Sorry, something went wrong.
8687ae7
👍 Excellent :)
No branches or pull requests
I've made use of this behaviour in the vanilla IndexedDB interface and found it very useful.
When creating/updating records on an object store using
IDBObjectStore.put
, theonsuccess
event handler will be passed the record's key as result:It would be helpful, for myself at least, if treo implemented this behaviour perhaps something like this:
What are your thoughts?
The text was updated successfully, but these errors were encountered: