New mozStorage Functionality

I just landed a lovely patch from Lev Serebryakov that does several awesome things for mozStorage (Bug 333848):

  • Adds support to allow functions to return values
  • Adds support for aggregate functions
  • Adds support for progress handlers (which can cancel long running queries)

I want to thank Lev for putting up with massive delays on getting reviews for his code, and adding xpcshell unit tests along with the C++ test. The thing I really like about having xpcshell unit tests is that it shows you how to use the API with JavaScript (I won’t get into how testing also helps you design a better API…). If you want to see how to the new stuff works, check out the test files.

By Shawn Wilsher

The man behind the site.

One reply on “New mozStorage Functionality”

Comments are closed.