Sorry, I don't understand your question.
You can create as many databases as you want.
To create them, I don't recommend to use
qx::dao::create_table (which works only with SQLite, and just to create samples).
So I would recommend to use :
- a tool dedicated to your SGBD
- or QxEntityEditor application
Then QxOrm library can manage several databases : you can for example define 1 database connexion per thread.
You can define it with singleton class :
qx::QxSqlDatabaseAll methods have this signature :
- Code: Select all
void setDatabaseName (const QString &s, bool bJustForCurrentThread=false, QSqlDatabase *pJustForThisDatabase=NULL)