[ALOY-1292] Add CommonJS sync adapter
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Models |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Bruce Wayne |
Created | 2015-07-10T14:42:49.000+0000 |
Updated | 2015-07-10T14:48:01.000+0000 |
Description
As an alternative to SQLite and Properties it would be great to have a CommonJS sync adapter to read and (if the source allows) write from a CommonJS file that would need to be as:
module.exports = [
{
// record
},
{
// record
}
// ...
];
The use case would be smaller sets of data that you don't want to first read into an SQLite DB or Properties and then need to do migrations when you have an app update. So most of the times this would just be a CommonJS files in the resources directory that wouldn't change.
PR on master for read-only version: https://github.com/appcelerator/alloy/pull/708