SQL database management systems (like MySQL) provide libraries, which allow other programs to query databases, etc. (the library is called libmysqlclient when it comes to MySQL). Qt uses those libraries to make "lowlevel" (database) calls to provide "high level" (QSQL driver) functionality.Originally Posted by gunhelstr
It is the database management system's responsibility to provide query consistency. Qt doesn't handle that. It just uses the client library to issue queries to the database.What if you have a system with many connections to the same database? Don't you have to lock tables to make sure your lookups are consistent every time?
BTW. To assure the consistency of a query the DBMS often lock single rows, but they avoid locking whole tables if they can. If you want to lock the whole table, you have to make a query for it yourself.
Bookmarks