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 ea97ac2..0b842d1 100644 --- a/common/storage_common.cpp +++ b/common/storage_common.cpp | |||
@@ -156,6 +156,11 @@ QByteArray Storage::uidFromKey(const QByteArray &key) | |||
156 | return key.mid(0, 38); | 156 | return key.mid(0, 38); |
157 | } | 157 | } |
158 | 158 | ||
159 | Storage::NamedDatabase Storage::mainDatabase(const Sink::Storage::Transaction &t, const QByteArray &type) | ||
160 | { | ||
161 | return t.openDatabase(type + ".main"); | ||
162 | } | ||
163 | |||
159 | bool Storage::NamedDatabase::contains(const QByteArray &uid) | 164 | bool Storage::NamedDatabase::contains(const QByteArray &uid) |
160 | { | 165 | { |
161 | bool found = false; | 166 | bool found = false; |