W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

[IndexedDB] What should be allowed as a key path?

From: Jeremy Orlow <jorlow@chromium.org>
Date: Mon, 7 Mar 2011 22:21:25 -0800
Message-ID: <AANLkTi=jcN-BUKcV33=p+Y9Smqj+9YumdXRYYiQhw4zL@mail.gmail.com>
To: public-webapps WG <public-webapps@w3.org>
As far as I recall, we never settled on how key path should be specified.
 Right now in Chrome, we allow any combination of .'s and static array
lookups.  So, for example, we allow "foo.bar[1][2].baz".  I don't remember
any specific use cases for the array lookups though, so I'm wondering if we
should just specify "<property> ["." <property>]*" to be the key path
specification.  Where <property> is whatever's allowed in JavaScript.  It
seems to me that this should support most use cases, should be easy to
understand and implement, and should leave us a lot of flexibility to
support other use cases as we may come up with them.


Received on Tuesday, 8 March 2011 06:22:17 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:30 UTC