X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fsqlitestorage.h;h=1df9ea10a180f48854a59ffdb651e94c0a744c0e;hb=f6781dc095957d65e8fc1683fda1c5a5b9cbedbb;hp=1185f9dcbd1ded87a1fee0e6789e95197a396dcd;hpb=5e5714fb2abf8feaf9cc4a27a26e86f2f9c45b30;p=quassel.git diff --git a/src/core/sqlitestorage.h b/src/core/sqlitestorage.h index 1185f9dc..1df9ea10 100644 --- a/src/core/sqlitestorage.h +++ b/src/core/sqlitestorage.h @@ -139,10 +139,16 @@ public: virtual bool prepareQuery(MigrationObject mo); + inline int stepSize() { return 50000; } + protected: virtual inline bool transaction() { return logDb().transaction(); } virtual inline void rollback() { logDb().rollback(); } virtual inline bool commit() { return logDb().commit(); } + +private: + void setMaxId(MigrationObject mo); + int _maxId; }; inline AbstractSqlMigrationReader *SqliteStorage::createMigrationReader() {