if(dojo.config["disableGearsStorage"] == true){return;
}// partition our storage data so that multiple apps// on the same host won't collidethis.TABLE_NAME = "__DOJO_STORAGE";
// create the table that holds our datatry{
dojox.sql("CREATE TABLE IF NOT EXISTS " + this.TABLE_NAME + "( "
+ " namespace TEXT, "
+ " key TEXT, "
+ " value TEXT "
+ ")");
dojox.sql("CREATE UNIQUE INDEX IF NOT EXISTS namespace_key_index"
+ " ON " + this.TABLE_NAME
+ " (namespace, key)");
}catch(e){
console.debug("dojox.storage.GearsStorageProvider.initialize:", e);
this.initialized = false; // we were unable to initialize
dojox.storage.manager.loaded();
return;
}// indicate that this storage provider is now loadedthis.initialized = true;
dojox.storage.manager.loaded();