Mercurial > hg > orthanc
comparison OrthancServer/SQLiteDatabaseWrapper.cpp @ 3056:6c5d4281da4a db-changes
removal of SQLiteDatabaseWrapper::GetAllInternalIds
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 21 Dec 2018 13:48:04 +0100 |
parents | 3f986ce336c8 |
children | 6faf575ba9cc |
comparison
equal
deleted
inserted
replaced
3055:71ac4f28176f | 3056:6c5d4281da4a |
---|---|
991 return c; | 991 return c; |
992 } | 992 } |
993 } | 993 } |
994 | 994 |
995 | 995 |
996 void SQLiteDatabaseWrapper::GetAllInternalIds(std::list<int64_t>& target, | |
997 ResourceType resourceType) | |
998 { | |
999 SQLite::Statement s(db_, SQLITE_FROM_HERE, "SELECT internalId FROM Resources WHERE resourceType=?"); | |
1000 s.BindInt(0, resourceType); | |
1001 | |
1002 target.clear(); | |
1003 while (s.Step()) | |
1004 { | |
1005 target.push_back(s.ColumnInt64(0)); | |
1006 } | |
1007 } | |
1008 | |
1009 | |
1010 void SQLiteDatabaseWrapper::GetAllPublicIds(std::list<std::string>& target, | 996 void SQLiteDatabaseWrapper::GetAllPublicIds(std::list<std::string>& target, |
1011 ResourceType resourceType) | 997 ResourceType resourceType) |
1012 { | 998 { |
1013 SQLite::Statement s(db_, SQLITE_FROM_HERE, "SELECT publicId FROM Resources WHERE resourceType=?"); | 999 SQLite::Statement s(db_, SQLITE_FROM_HERE, "SELECT publicId FROM Resources WHERE resourceType=?"); |
1014 s.BindInt(0, resourceType); | 1000 s.BindInt(0, resourceType); |