Use db transactions when updating the progress from iOS

Timeouts were a problem before.
This commit is contained in:
Luis Ángel San Martín
2019-08-24 13:31:52 +02:00
parent 8bb43a7cf3
commit 9056fffb66
3 changed files with 132 additions and 4 deletions

View File

@ -69,9 +69,11 @@ public:
static void updateChildrenInfo(QSqlDatabase &db);
static void updateProgress(qulonglong libraryId, const ComicInfo &comicInfo);
static void setComicAsReading(qulonglong libraryId, const ComicInfo &comicInfo);
static void updateReadingRemoteProgress(const ComicInfo &comicInfo, QSqlDatabase &db);
static void updateFromRemoteClient(qulonglong libraryId, const ComicInfo &comicInfo);
static void updateFromRemoteClientWithHash(const ComicInfo &comicInfo);
static void updateReadingRemoteProgress(const ComicInfo &comicInfo, QSqlDatabase &db);
static void updateFromRemoteClient(const QMap<qulonglong, QList<ComicInfo>> &comics);
static void updateFromRemoteClientWithHash(const QList<ComicInfo> &comics);
static void renameLabel(qulonglong id, const QString &name, QSqlDatabase &db);
static void renameList(qulonglong id, const QString &name, QSqlDatabase &db);
static void reasignOrderToSublists(QList<qulonglong> ids, QSqlDatabase &db);