coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.73k stars 240 forks source link

Is there a way to connect to multiple (sqlite - websql, html5) database in a single session #163

Open ketanshah79 opened 9 years ago

ketanshah79 commented 9 years ago

Hi there,

I was wondering if there is a way I can connect to multiple sqlite html5 databases?

I am writing an app using node webkit and have an architecture where there is a main database which stores meta information about various accounts, while each account has their own database?

Thanks, -Ketan.

ketanshah79 commented 9 years ago

Actually, I can connect to different databases using persistences persistence.store.websql.config call. However the schema "defined" in the meta database gets ported over to account databases as well

I am assuming that we might be using singletons for storing the database definitions?