Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

objectStore does not exists #14

Closed
ghatul opened this issue Jan 24, 2017 · 1 comment
Closed

objectStore does not exists #14

ghatul opened this issue Jan 24, 2017 · 1 comment

Comments

@ghatul
Copy link

ghatul commented Jan 24, 2017

i want to create more than one object store with same indexses but stuck with error objectStore does not exists .

this.dbService.createDB('skillcontext', (evt:any)=> {
  console.log('---------------------1--------------------------------');
});
this.dbService.createDB('math', (evt:any)=> {
  console.log('---------------------2--------------------------------');
});

math object store is created all time but stuck on skillcontext object

@gilf
Copy link
Owner

gilf commented Jan 26, 2017

Hi @ghatul,

Please refer to the API and how to use it.
There is no createDB function but rather there is a createStore function which gets as a parameter a database version number (have to be a number) and a callback that will be called when the indexeddb upgradeneeded event is called. If the version number isn't changed between the calls to createStore nothing will happen and the upgradeneeded event wouldn't be fired.

@gilf gilf closed this as completed Jan 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants