Mercurial > hg > orthanc
diff OrthancServer/IDatabaseWrapper.h @ 1252:ee43f0d611a8
testing
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 07 Jan 2015 17:41:41 +0100 |
parents | 32fcc5dc7562 |
children | b4acdb37e43b |
line wrap: on
line diff
--- a/OrthancServer/IDatabaseWrapper.h Tue Jan 06 14:25:44 2015 +0100 +++ b/OrthancServer/IDatabaseWrapper.h Wed Jan 07 17:41:41 2015 +0100 @@ -172,5 +172,18 @@ virtual SQLite::ITransaction* StartTransaction() = 0; virtual void SetListener(IServerIndexListener& listener) = 0; + + + // For unit tests only! + virtual void GetChildren(std::list<std::string>& childrenPublicIds, + int64_t id) = 0; + + // For unit tests only! + virtual int64_t GetTableRecordCount(const std::string& table) = 0; + + // For unit tests only! + virtual bool GetParentPublicId(std::string& result, + int64_t id) = 0; + }; }