C++ (Qt) database = QSqlDatabase::addDatabase("QSQLITE"); database.setConnectOptions("QSQLITE_BUSY_TIMEOUT=5000");
db = QSqlDatabase::addDatabase("QSQLITE");db.setHostName("myhostname.ru");db.setDatabaseName("PinkPanther");db.setUserName("PinkPanther");db.setPassword("123XYZ321");if(!db.open()){ showCritical("Can't open DATABASE!"); exit(1);}query = QSqlQuery(db);