Mercurial > hg > orthanc-databases
comparison PostgreSQL/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 |
---|---|
63 | 63 |
64 /* Create the database back-end */ | 64 /* Create the database back-end */ |
65 backend_.reset(new OrthancDatabases::PostgreSQLIndex(context, parameters)); | 65 backend_.reset(new OrthancDatabases::PostgreSQLIndex(context, parameters)); |
66 | 66 |
67 /* Register the PostgreSQL index into Orthanc */ | 67 /* Register the PostgreSQL index into Orthanc */ |
68 OrthancDatabases::DatabaseBackendAdapterV2::Register(context, *backend_); | 68 OrthancDatabases::DatabaseBackendAdapterV2::Register(*backend_); |
69 } | 69 } |
70 catch (Orthanc::OrthancException& e) | 70 catch (Orthanc::OrthancException& e) |
71 { | 71 { |
72 LOG(ERROR) << e.What(); | 72 LOG(ERROR) << e.What(); |
73 return -1; | 73 return -1; |