Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp @ 4595:cc64385593ef db-changes
added OrthancPluginRegisterDatabaseBackendV3() to plugin sdk
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 16 Mar 2021 17:58:16 +0100 |
parents | d494b4f1103e |
children | f75c63aa9de0 |
comparison
equal
deleted
inserted
replaced
4594:d494b4f1103e | 4595:cc64385593ef |
---|---|
669 throw OrthancException(ErrorCode_UnknownResource); | 669 throw OrthancException(ErrorCode_UnknownResource); |
670 } | 670 } |
671 } | 671 } |
672 | 672 |
673 | 673 |
674 virtual uint64_t GetResourceCount(ResourceType resourceType) ORTHANC_OVERRIDE | 674 virtual uint64_t GetResourcesCount(ResourceType resourceType) ORTHANC_OVERRIDE |
675 { | 675 { |
676 SQLite::Statement s(db_, SQLITE_FROM_HERE, | 676 SQLite::Statement s(db_, SQLITE_FROM_HERE, |
677 "SELECT COUNT(*) FROM Resources WHERE resourceType=?"); | 677 "SELECT COUNT(*) FROM Resources WHERE resourceType=?"); |
678 s.BindInt(0, resourceType); | 678 s.BindInt(0, resourceType); |
679 | 679 |