Export to GitHub

jquery-jstore - issue #46

Enhancement: add "database name" concept to all storage engines


Posted on Nov 12, 2010 by Grumpy Hippo

The SQL storage engines (HTML5 Web SQL and Google Gears SQL), create named databases. When accessing them from the same web application, they are opened by name. This means that I can store distinct data-sets with the same variable structure in different databases and not have any issues. I believe the "project name" passed to jStore is used as the name of the database created.

However, if jStore selects HTML5 Local Storage (or others, probably), there is no concept of named databases. This means I cannot use the same variable structure between distinct data-sets, rather I would need to prefix every variable manually with a data-set identifier in order to prevent collisions.

It would be terrific if the concept of named data-sets could be transparently introduced / used by all storage engines. However the implementation, I would greatly appreciate being able to use the same variable names in all my data-sets, regardless of the storage engine selected.

Status: New

Labels:
Type-Defect Priority-Medium