I'm using firebird embedded db with Qt provider. For working with db I use qsqlquery::exec() function. Is this function sync or async?
QSqlQuery::exec() is blocking (synchronous) but not atomic, the OS can interrupt the thread and run another thread inbetween.
Note that you shouldn't share a single database connection across threads anyway, so there shouldn't be problems.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With