Answer the question
In order to leave comments, you need to log in
Qt, mysql how to find out about updating in a table?
Hello. I decided to add a check "whether it needs to be updated" to the loading code from the table. In general, I assembled myself such a bike:
QSqlQuery query;
query.exec ("show table status from "+base);
while (query.next() && query.value(0).toString()!=table)
{}
if (query.value(12).toString() != updatecheck || query.value(12).toString()=="")
{ и пошла загрузка
Answer the question
In order to leave comments, you need to log in
You can reliably monitor database updates through the replication stream.
Here is a library https://github.com/Begun/libslave
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question