Mercurial > hg > orthanc-databases
comparison MySQL/Plugins/IndexPlugin.cpp @ 207:d9ef3f16e6a2
wrapping transactions in API v3
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 Mar 2021 15:11:45 +0100 |
parents | 2089d4071408 |
children | c2e4a909de0e |
comparison
equal
deleted
inserted
replaced
206:6dcf57074dd4 | 207:d9ef3f16e6a2 |
---|---|
69 | 69 |
70 /* Create the database back-end */ | 70 /* Create the database back-end */ |
71 backend_.reset(new OrthancDatabases::MySQLIndex(context, parameters)); | 71 backend_.reset(new OrthancDatabases::MySQLIndex(context, parameters)); |
72 | 72 |
73 /* Register the MySQL index into Orthanc */ | 73 /* Register the MySQL index into Orthanc */ |
74 OrthancDatabases::DatabaseBackendAdapterV2::Register(context, *backend_); | 74 OrthancDatabases::DatabaseBackendAdapterV2::Register(*backend_); |
75 } | 75 } |
76 catch (Orthanc::OrthancException& e) | 76 catch (Orthanc::OrthancException& e) |
77 { | 77 { |
78 LOG(ERROR) << e.What(); | 78 LOG(ERROR) << e.What(); |
79 return -1; | 79 return -1; |