examples/quickstart2.js
function databaseInitialize() {
  // on the first load of (non-existent database), we will have no collections so we can 
  //   detect the absence of our collections and add (and configure) them now.
  var entries = db.getCollection("entries");
  if (entries === null) {
    entries = db.addCollection("entries");
  }

  // kick off any program logic or start listening to external events
  runProgramLogic();
}
function databaseInitialize() {
  // on the first load of (non-existent database), we will have no collections so we can 
  //   detect the absence of our collections and add (and configure) them now.
  var entries = db.getCollection("entries");
  if (entries === null) {
    entries = db.addCollection("entries");
  }

  // kick off any program logic or start listening to external events
  runProgramLogic();
}
function databaseInitialize ( ) { // on the first load of (non-existent database), we will have no collections so we can  //   detect the absence of our collections and add (and configure) them now. var entries = db . getCollection ( "entries" ) ; if ( entries === null ) { entries = db . addCollection ( "entries" ) ; } // kick off any program logic or start listening to external events runProgramLogic ( ) ; }
implement the autoloadback referenced in loki constructor
implement the autoloadback referenced in loki constructor