comparison OrthancServer/SQLiteDatabaseWrapper.cpp @ 3020:d207f6ac1f86 db-changes

tracking disk size by the database engine to ensure consistency across transactions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 15 Dec 2018 10:57:18 +0100
parents 8336204d95dc
children 039a9d262d64
comparison
equal deleted inserted replaced
3019:8336204d95dc 3020:d207f6ac1f86
1193 while (statement.Step()) 1193 while (statement.Step())
1194 { 1194 {
1195 target.push_back(statement.ColumnInt64(0)); 1195 target.push_back(statement.ColumnInt64(0));
1196 } 1196 }
1197 } 1197 }
1198
1199
1200 bool SQLiteDatabaseWrapper::IsDiskSizeAbove(uint64_t threshold)
1201 {
1202 return GetTotalCompressedSize() > threshold;
1203 }
1198 } 1204 }