7class __declspec(dllexport) AdvancedQueryBuilder :
public DataStorageAPI::QueryBuilder
10 static const std::list<std::string>& getComparators() {
return m_comparators; }
11 static std::string getAnyOfComparator() {
return m_anyOfComparator; }
12 static std::string getNoneOfComparator() {
return m_noneOfComparator; }
21 BsonViewOrValue CreateComparisionEqualNoneOf(
const std::list<ot::Variable>& values);
22 BsonViewOrValue CreateComparisionEqualToAnyOf(
const std::list<ot::Variable>& values);
27 inline static const std::string m_anyOfComparator =
"any of";
28 inline static const std::string m_noneOfComparator =
"not any of";
29 inline static const std::list<std::string> m_comparators = {
"<",
"<=",
"=",
">",
">=",
"!=", m_anyOfComparator, m_noneOfComparator };;
30 inline static const std::map<std::string, std::string> m_mongoDBComparators = { {
"<",
"$lt"},{
"<=",
"$lte"},{
">=",
"$gte"},{
">",
"$gt"},{
"=",
"$eq"}, {
"!=",
"$ne"}, {m_anyOfComparator,
"$in"}, {m_noneOfComparator,
"$nin"} };
bsoncxx::document::view_or_value BsonViewOrValue
Definition DocumentAccess.h:12
Definition Variable.h:107