Mercurial > hg > orthanc-databases
comparison Framework/Plugins/IndexUnitTests.h @ 200:30b210616f4f
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 18 Mar 2021 15:21:17 +0100 |
parents | 8cae98f73d53 |
children | 42990b2dd51b |
comparison
equal
deleted
inserted
replaced
199:8cae98f73d53 | 200:30b210616f4f |
---|---|
177 SQLiteIndex db; // Open in memory | 177 SQLiteIndex db; // Open in memory |
178 #else | 178 #else |
179 # error Unsupported database backend | 179 # error Unsupported database backend |
180 #endif | 180 #endif |
181 | 181 |
182 db.RegisterOutput(&context, new OrthancPlugins::DatabaseBackendOutput(&context, NULL)); | 182 db.RegisterOutput(&context, new OrthancPlugins::DatabaseBackendOutputV2(&context, NULL)); |
183 db.Open(); | 183 db.Open(); |
184 | 184 |
185 | 185 |
186 std::string s; | 186 std::string s; |
187 ASSERT_TRUE(db.LookupGlobalProperty(s, Orthanc::GlobalProperty_DatabaseSchemaVersion)); | 187 ASSERT_TRUE(db.LookupGlobalProperty(s, Orthanc::GlobalProperty_DatabaseSchemaVersion)); |