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.
One reply on “New mozStorage Functionality”
(If new the tests have not appeared in mxr yet, see end of big patch at bug)