Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1292] Add CommonJS sync adapter

GitHub Issuen/a
TypeNew Feature
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsModels
Labelsn/a
ReporterFokke Zandbergen
AssigneeBruce Wayne
Created2015-07-10T14:42:49.000+0000
Updated2015-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.

Comments

  1. Fokke Zandbergen 2015-07-10

    PR on master for read-only version: https://github.com/appcelerator/alloy/pull/708

JSON Source