Re: W3C Working Draft for Data Store API

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