-
-
Notifications
You must be signed in to change notification settings - Fork 648
Table.put()
David Fahlander edited this page Nov 25, 2016
·
2 revisions
Adds new or replaces existing object in the object store.
table.put(item, [key])
item | Object to add | |
key | Primary key | optional |
If an object with the same primary key already exist, it will be replaced with the given object. If it does not exist, it will be added.
If the operation succeeds then the returned Promise resolves to the key under which the object was stored in the Table.
Dexie.js - minimalistic and bullet proof indexedDB library