コミットを比較

..

1 コミット

作成者 SHA1 メッセージ 日付
a9d3f7897a shared: sqlitedbservice: Introduce exec(),execBool(). Refactor 2023-03-26 15:39:23 +02:00
2個のファイルの変更2行の追加14行の削除

ファイルの表示

@ -25,22 +25,10 @@ SaveFileResult FileSaver::addFile(QString path)
QString absPath = info.absoluteFilePath();
auto mtime = info.lastModified().toSecsSinceEpoch();
bool exists = false;
if(this->fileSaverOptions.fillExistingContentless)
{
exists = this->dbService->fileExistsInDatabase(absPath, mtime, 'c');
}
else
{
exists = this->dbService->fileExistsInDatabase(absPath, mtime);
}
if(exists)
if(this->dbService->fileExistsInDatabase(absPath, mtime))
{
return SKIPPED;
}
return saveFile(info);
}

ファイルの表示

@ -151,7 +151,7 @@ QSqlQuery SqliteDbService::exec(QString querystr, std::initializer_list<QVariant
}
if(!query.exec())
{
throw LooqsGeneralException("Error while exec(): " + query.lastError().text());
throw LooqsGeneralException("Error while trying to query for file existance: " + query.lastError().text());
}
return query;
}