I have hard to understand how to use add method effectively.

On my indexeddb wrapper library development, the wrapper database instance 
dispatches installable event for creating, deleting and updating a record. 
Interested components register and listen to update UI or sync to server. That 
requires differentiating created and updated on put call. On the otherhand add 
method throw Error rather than eventing onerror event when confict. So it usage 
will be very rare.

I wish put method request indicates some flag to differentiate between created 
or updated.

I could forget about put and use cursor directly, but still requires extra 
existance test request. 

Best 
Kyaw

Reply via email to