Mercurial > hg > orthanc-databases
comparison SQLite/Plugins/IndexPlugin.cpp @ 201:42990b2dd51b
create IDatabaseBackendOutput only if needed
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 18 Mar 2021 16:51:51 +0100 |
parents | 30b210616f4f |
children | 2089d4071408 |
comparison
equal
deleted
inserted
replaced
200:30b210616f4f | 201:42990b2dd51b |
---|---|
60 #endif | 60 #endif |
61 | 61 |
62 try | 62 try |
63 { | 63 { |
64 /* Create the database back-end */ | 64 /* Create the database back-end */ |
65 backend_.reset(new OrthancDatabases::SQLiteIndex("index.db")); // TODO parameter | 65 backend_.reset(new OrthancDatabases::SQLiteIndex(context, "index.db")); // TODO parameter |
66 | 66 |
67 /* Register the SQLite index into Orthanc */ | 67 /* Register the SQLite index into Orthanc */ |
68 OrthancPlugins::DatabaseBackendAdapterV2::Register(context, *backend_); | 68 OrthancPlugins::DatabaseBackendAdapterV2::Register(context, *backend_); |
69 } | 69 } |
70 catch (Orthanc::OrthancException& e) | 70 catch (Orthanc::OrthancException& e) |