data: Save timestamp of project indexing and show it in overview

This commit is contained in:
Eberhard Graether
2017-05-09 23:47:34 +02:00
parent 3fdd24f038
commit 4b9c9858b7
5 changed files with 28 additions and 0 deletions
+11
View File
@@ -1,6 +1,7 @@
#include "SqliteStorage.h"
#include "utility/logging/logging.h"
#include "utility/TimePoint.h"
SqliteStorage::SqliteStorage(const FilePath& dbFilePath)
: m_dbFilePath(dbFilePath.canonical())
@@ -119,6 +120,16 @@ void SqliteStorage::setVersion()
setApplicationVersion();
}
void SqliteStorage::setTime()
{
insertOrUpdateMetaValue("timestamp", TimePoint::now().toString());
}
TimePoint SqliteStorage::getTime() const
{
return TimePoint(getMetaValue("timestamp"));
}
void SqliteStorage::setupMetaTable()
{
try