You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i have some problem when i am creating new store in existing indexed db. it is not created after i have deleted the existing db in the browser . its working how to solve that .
my code is:
Hi, i have some problem when i am creating new store in existing indexed db. it is not created after i have deleted the existing db in the browser . its working how to solve that .
my code is:
createStore(name: string): Promise {
const self = this;
if (!!this.db.dbWrapper.validateStoreName(name)) {
alert('yes already exists');
return;
}
return this.db.openDatabase(self.db.dbWrapper.db.version + 1, (evt) => {
const objectStore = evt.currentTarget.result.createObjectStore(
name, {keyPath: 'id', autoIncrement: true});
objectStore.createIndex('name', 'name', {unique: false});
objectStore.createIndex('email', 'email', {unique: false});
});
}
The text was updated successfully, but these errors were encountered: