Hacker News new | ask | show | jobs
by bonn1 4125 days ago
I thought all browsers support IndexedDB?

However, I think it would be helpful to communicate this as a wrapper around IndexedDB instead of positioning it as another new DB.

2 comments

It's really not a wrapper around indexeddb at all. It doesn't even communicate with indexeddb except to save and load data for storage and that is optional. The main use here is for allowing web app developers to be able to load a dataset from a server and then query it dynamically on the client-side, as well as display that data automatically via data-binding.
But at the end you have to store it somehow and thus you employ the underlying browser DBs for that (like IndexedDB or WebSQL) => wrapper
But that is the point... you don't have to store it in an underlying browser db. It runs as an in-memory store if you don't use an underlying engine. The persistence module is an optional extra and doesn't even need to be included in the library.
> The persistence module is an optional extra

But a DB offers usually persistency and you called your product ForerunnerDB

I still think that the communication/positioning/branding of ForerunnerDB could be improved since it's misleading.

Unfortunately, support is still not great: http://caniuse.com/#feat=indexeddb

Those yellows are really more yellow than green, in my experience. :/