Skip to content
David Souther edited this page Dec 24, 2012 · 1 revision
var runtime = new JEFRi.Runtime(CONTEXT_URI);
// Wait for runtime.ready, etc
var transaction = runtime.transaction();
transaction.add(array_of_entities_to_add);
var storeType = "LocalStore"; //HTML5 localstorage. Also PostStore (requires "remote" in options), FileStore
var storeOptions = {"runtime": runtime};
var store = new JEFRi[storeType](storeOptions);
store.execute("persist" /* Or "get" */, transaction).then(function(results){
  // console.log?
});
Clone this wiki locally