summaryrefslogtreecommitdiffstats
path: root/tests/dbwriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dbwriter.cpp')
-rw-r--r--tests/dbwriter.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/dbwriter.cpp b/tests/dbwriter.cpp
index 902a607..3045eac 100644
--- a/tests/dbwriter.cpp
+++ b/tests/dbwriter.cpp
@@ -18,7 +18,11 @@ int main(int argc, char *argv[])
18 } 18 }
19 19
20 qWarning() << "Creating db: " << testDataPath << dbName << count; 20 qWarning() << "Creating db: " << testDataPath << dbName << count;
21 Sink::Storage::DataStore store(testDataPath, dbName, Sink::Storage::DataStore::ReadWrite); 21 QMap<QByteArray, int> dbs = {{"a", 0}, {"b", 0}, {"c", 0}, {"p", 0}, {"q", 0}, {"db", 0}};
22 for (int d = 0; d < 40; d++) {
23 dbs.insert("db" + QByteArray::number(d), 0);
24 }
25 Sink::Storage::DataStore store(testDataPath, {dbName, dbs}, Sink::Storage::DataStore::ReadWrite);
22 auto transaction = store.createTransaction(Sink::Storage::DataStore::ReadWrite); 26 auto transaction = store.createTransaction(Sink::Storage::DataStore::ReadWrite);
23 for (int i = 0; i < count; i++) { 27 for (int i = 0; i < count; i++) {
24 if (!transaction) { 28 if (!transaction) {