mozilla

Revision 134129 of Storage

  • Revision slug: Talk:Storage
  • Revision title: Storage
  • Revision id: 134129
  • Created:
  • Creator: BrettWilson
  • 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?

--BenBasson 15:37, 2 August 2006 (PDT)

Do we need mozIStorageDataSet.idl anymore?

I saw mosIStorageDataSet.idl in the Firefox 2.0 beta 1 source. As far as I can see that interface is not used. Should it be dropped?

Maybe

The two previous questions are related. I think mozIStorageDataSet was there for returning a big array. It's currently unused, but perhaps we should add this capability. I'm not totally sure what Vlad had in mind for this.

-- Brett Wilson 15 August 2006

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><p>--<a href="User:BenBasson">BenBasson</a> 15:37, 2 August 2006 (PDT)
</p>
<h3 name="Do_we_need_mozIStorageDataSet.idl_anymore.3F"> Do we need mozIStorageDataSet.idl anymore? </h3>
<p>I saw mosIStorageDataSet.idl in the Firefox 2.0 beta 1 source. As far as I can see  that interface is not used. Should it be dropped?
</p>
<h3 name="Maybe"> Maybe </h3>
<p>The two previous questions are related. I think mozIStorageDataSet was there for returning a big array. It's currently unused, but perhaps we should add this capability. I'm not totally sure what Vlad had in mind for this.
</p><p>-- Brett Wilson 15 August 2006
</p>
Revert to this revision