graph-database.js
/**
   Given an name, create an object store and register it with that name
   */
Given an name, create an object store and register it with that name
Given an name create an object store and register it with that name
createObjectStore(name, options = {}) {
    if (!name) {
      throw new TypeError("name is required.");
    }
    var environment = options['environment'] || this.environment;
    var old = this.objectStores[name];
    if (old) {
      old.environment = environment;
      return( old );
    } else {
      var newStore = new GDBObjectStore(name, {environment: environment});
      this.objectStores[name] = newStore;
      Object.defineProperties(newStore,
                             {database: {value: this, writable: false}});
      return( newStore );
    }
  }
createObjectStore ( name , options = { } ) { if ( ! name ) { throw new TypeError ( "name is required." ) ; } var environment = options [ 'environment' ] || this . environment ; var old = this . objectStores [ name ] ; if ( old ) { old . environment = environment ; return ( old ) ; } else { var newStore = new GDBObjectStore ( name , { environment : environment } ) ; this . objectStores [ name ] = newStore ; Object . defineProperties ( newStore , { database : { value : this , writable : false } } ) ; return ( newStore ) ; } }
Given an name, create an object store and register it with that name
Given an name create an object store and register it with that name
//console.log('in gdb createObjectStore'); //console.log(name); //console.log(this.objectStores);