- From: Gene Lian <clian@mozilla.com>
- Date: Tue, 11 Feb 2014 04:35:35 -0800 (PST)
- To: Zoltan Kis <zoltan.kis@intel.com>
- Cc: EDUARDO FULLEA CARRERA <efc@tid.es>, public-sysapps@w3.org, Ehsan Akhgari <ehsan@mozilla.com>, Andrew Overholt <overholt@mozilla.com>, Jonas Sicking <jonas@sicking.cc>
Hi Zoltan and Eduardo, ----- Original Message ----- > From: "Zoltan Kis" <zoltan.kis@intel.com> > I also tend to skip use case 3 for now. That would leave us with this API: > 1. Promise update(any data, DOMString id); > // with DB update semantics, i.e. if id does not exist, then fail. > 2. Promise<index> insert(any data); > // with DB insert semantics, and for that reason let us not call > it 'add' (which should be reserved for the case we will at any point > implement the 'insert if not exist, otherwise update' use case. Sounds good. I'll vote for this. Fire bug: https://github.com/airpingu/data-store-api/issues/17 and drop: https://github.com/airpingu/data-store-api/issues/12 We'll revisit the add(any data, optional DOMString id) until really needed. Gene
Received on Tuesday, 11 February 2014 12:36:03 UTC