I'm new to PouchDB. Now I know how to create DB and how add docs in it. But unlike MySQL, I can't create tables here. One option is to create multiple PouchDBs, which doesn't seem a good idea. I don't want to use CouchDB or something like that.
All I want to use is the localStorage. So say if I have 3 tables in MySQL:
- users
- messages
- positions
How would I structure the databases so that I can efficiently use find
(Query by index) to find the data for a particular table? And is it also possible to define column types like we define in MySQL?
There's something explained here, but the accepted answer suggests using CouchDB, which I don't want currently. I think it's possible merely by localStorage.