comparison MySQL/Plugins/MySQLIndex.cpp @ 581:a80775ee5eea find-refactoring

MySQL: Added support for ExtendedFind
author Alain Mazy <am@orthanc.team>
date Mon, 21 Oct 2024 14:34:57 +0200
parents 35d2df9572b1
children
comparison
equal deleted inserted replaced
580:35d2df9572b1 581:a80775ee5eea
597 597
598 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) 598 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5)
599 bool MySQLIndex::HasFindSupport() const 599 bool MySQLIndex::HasFindSupport() const
600 { 600 {
601 // TODO-FIND 601 // TODO-FIND
602 return false; 602 return true;
603 } 603 }
604 #endif 604 #endif
605 605
606 606
607 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) 607 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5)
608 void MySQLIndex::ExecuteFind(Orthanc::DatabasePluginMessages::TransactionResponse& response, 608 // void MySQLIndex::ExecuteFind(Orthanc::DatabasePluginMessages::TransactionResponse& response,
609 DatabaseManager& manager, 609 // DatabaseManager& manager,
610 const Orthanc::DatabasePluginMessages::Find_Request& request) 610 // const Orthanc::DatabasePluginMessages::Find_Request& request)
611 { 611 // {
612 // TODO-FIND 612 // // TODO-FIND
613 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); 613 // throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented);
614 } 614 // }
615 615
616 void MySQLIndex::ExecuteCount(Orthanc::DatabasePluginMessages::TransactionResponse& response, 616 // void MySQLIndex::ExecuteCount(Orthanc::DatabasePluginMessages::TransactionResponse& response,
617 DatabaseManager& manager, 617 // DatabaseManager& manager,
618 const Orthanc::DatabasePluginMessages::Find_Request& request) 618 // const Orthanc::DatabasePluginMessages::Find_Request& request)
619 { 619 // {
620 // TODO-FIND 620 // // TODO-FIND
621 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); 621 // throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented);
622 } 622 // }
623 #endif 623 #endif
624 } 624 }