updroid / jquery-jstore

Automatically exported from code.google.com/p/jquery-jstore
1 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by jokeyrh...@gmail.com on 12 Nov 2010 at 7:19