0

I want to create multiple data store in one database in indexeddb.

I have created my database - College

Created a data store - Student

In the "College" database I want to create one more data store dynamically with the name "Department".

Is it possible? Please help me out.

Thanks in advance.

1 Answer 1

2

In IndexedDB, a database can contain as many object stores as you'd like. So having "Department" and "Student" stores inside of a "College" database is no problem at all.

Sign up to request clarification or add additional context in comments.

7 Comments

Thanks for your comment, I am new to indexeddb, can you please provide me some link or syntax for creating multiple object store dynamically.
Here's the maybeAddObjectStore() method from dash, my IDB wrapper github.com/editor/dash/blob/master/lib/dash.dev.js#L915
No problem! Anything else I can help with to nudge you toward marking this as "correct"?
I refer the link which u provided and one more link "stackoverflow.com/questions/20097662/…", But getting error, DOM Exception, for which I have already posted a question. stackoverflow.com/questions/22604556/…
Different question - different answer. I answered that one as well though: we need some more info about your error (such as error.message and the stack)
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.