diff options
Diffstat (limited to 'common/storage_common.cpp')
-rw-r--r-- | common/storage_common.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/storage_common.cpp b/common/storage_common.cpp index 4ca484a..8227a98 100644 --- a/common/storage_common.cpp +++ b/common/storage_common.cpp | |||
@@ -163,6 +163,11 @@ QByteArray Storage::uidFromKey(const QByteArray &key) | |||
163 | return key.mid(0, 38); | 163 | return key.mid(0, 38); |
164 | } | 164 | } |
165 | 165 | ||
166 | qint64 Storage::revisionFromKey(const QByteArray &key) | ||
167 | { | ||
168 | return key.mid(39).toLongLong(); | ||
169 | } | ||
170 | |||
166 | Storage::NamedDatabase Storage::mainDatabase(const Sink::Storage::Transaction &t, const QByteArray &type) | 171 | Storage::NamedDatabase Storage::mainDatabase(const Sink::Storage::Transaction &t, const QByteArray &type) |
167 | { | 172 | { |
168 | return t.openDatabase(type + ".main"); | 173 | return t.openDatabase(type + ".main"); |