comparison PostgreSQL/Plugins/IndexPlugin.cpp @ 213:c2e4a909de0e

added IndexBackend::Register() to be used in all the index plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 24 Mar 2021 15:59:23 +0100
parents d9ef3f16e6a2
children c8e06b41feec
comparison
equal deleted inserted replaced
212:821d4ba83dc3 213:c2e4a909de0e
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(*backend_); 68 OrthancDatabases::IndexBackend::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;