forked from qt-creator/qt-creator
Sqlite: Open Sqlite by default in exclusive locking mode
There are no extra files for the WAL in the excusive locking mode and it can be even faster because the logging is happening on the heap. Change-Id: I59d75dd2aa95d802ba67c8534a5cd8ab32a343df Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -433,6 +433,20 @@ const char *toText(Operation operation)
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
const char *toText(LockingMode lockingMode)
|
||||
{
|
||||
switch (lockingMode) {
|
||||
case LockingMode::Default:
|
||||
return "Default";
|
||||
case LockingMode::Normal:
|
||||
return "Normal";
|
||||
case LockingMode::Exclusive:
|
||||
return "Exclusive";
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
} // namespace
|
||||
|
||||
std::ostream &operator<<(std::ostream &out, const SessionChangeSet &changeset)
|
||||
@@ -455,6 +469,11 @@ std::ostream &operator<<(std::ostream &out, const SessionChangeSet &changeset)
|
||||
return out;
|
||||
}
|
||||
|
||||
std::ostream &operator<<(std::ostream &out, LockingMode lockingMode)
|
||||
{
|
||||
return out << toText(lockingMode);
|
||||
}
|
||||
|
||||
std::ostream &operator<<(std::ostream &out, Operation operation)
|
||||
{
|
||||
return out << toText(operation);
|
||||
|
||||
Reference in New Issue
Block a user