mozilla

Revision 134126 of Storage

  • Revision slug: Talk:Storage
  • Revision title: Storage
  • Revision id: 134126
  • Created:
  • Creator: BenBasson
  • Is current revision? No
  • Comment

Revision Content

With regards to the way the results from queries are returned, wouldn't it be better (and more logical) to mimmick the PHP way of doing this, whereby results are stored in a 2D array/object which is returned? This is, at least, the way I would expect the behaviour to be in JavaScript, rather than a more iterative approach.

I'm also not really sure what the benefit is to having several APIs for running queries. This makes it extremely difficult to create (for example) an SQLite console window in XULRunner, which was a recent experiment of mine. Is it plausible in any way to have a generic "run query and get results, if any" API as a replacement for or in addition to the current APIs?

Revision Source

<p>With regards to the way the results from queries are returned, wouldn't it be better (and more logical) to mimmick the PHP way of doing this, whereby results are stored in a 2D array/object which is returned? This is, at least, the way I would expect the behaviour to be in JavaScript, rather than a more iterative approach.
</p><p>I'm also not really sure what the benefit is to having several APIs for running queries. This makes it extremely difficult to create (for example) an SQLite console window in XULRunner, which was a recent experiment of mine. Is it plausible in any way to have a generic "run query and get results, if any" API as a replacement for or in addition to the current APIs?
</p>
Revert to this revision