forked from qt-creator/qt-creator
Clang: Add insert file information to symbol storage
We use INSERT OR REPLACE because it is simpler than the insert and update and we provide the primary key by our self. Change-Id: I868e040918cc6c2ed183cecc746c89bec136f974 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -108,6 +108,16 @@ public:
|
||||
insertStatement.write(projectPartId, sourceFilePathId.filePathId);
|
||||
}
|
||||
|
||||
void insertFileInformations(const FileInformations &fileInformations)
|
||||
{
|
||||
WriteStatement &statement = m_statementFactory.insertFileInformations;
|
||||
|
||||
for (const FileInformation &fileInformation : fileInformations)
|
||||
statement.write(fileInformation.filePathId.filePathId,
|
||||
fileInformation.size,
|
||||
fileInformation.lastModified);
|
||||
}
|
||||
|
||||
static Utils::SmallString toJson(const Utils::SmallStringVector &strings)
|
||||
{
|
||||
QJsonDocument document;
|
||||
|
||||
Reference in New Issue
Block a user