Changes to Bongo, wrapper for IndexedDB

26 views
Skip to first unread message

Aaron S

unread,
May 19, 2013, 1:26:11 AM5/19/13
to uta...@googlegroups.com
I made some significant upgrades to bongo, my wrapper for IndexedDB:

https://github.com/aaronshaf/bongo

The most significant change I made was auto-versioning. Part of what sucks about IndexedDB is versioning. When you go from one version number to the next, you're forced to manually add and remove any changed objectStores. Migrations -- yuck. This is automated now, something I haven't seen any other library or wrapper for IndexedDB do. Maybe I didn't look very hard.

Bongo (should I call it BongoJS while I still can?) now just inspects the currently stored database with the new definition/schema, and makes automatic upgrades where necessary. One can more mindlessly use IndexedDB this way.

I would appreciate some brutal code review. It's still in its infancy. Please play with it and tell me how much it sucks so I can make it better.

Thanks for the time and community,

Aaron

Aaron S

unread,
May 20, 2013, 11:43:57 PM5/20/13
to uta...@googlegroups.com
Updated list of features:

* Automatic versioning and database upgrades
* Custom filters
* Mongo-esque key generator (on _id)
* Comparison query operators ($all, $lt, $lte, $gt, $gte, $in, $nin)
* Insert, save, remove, find, findOne
* Pick, limit, skip
Reply all
Reply to author
Forward
0 new messages