19#ifndef CPPREALM_BRIDGE_QUERY_HPP
20#define CPPREALM_BRIDGE_QUERY_HPP
22#include <cpprealm/internal/bridge/col_key.hpp>
23#include <cpprealm/internal/bridge/obj.hpp>
24#include <cpprealm/internal/bridge/utils.hpp>
37命名空间realm::internal::bridge {
51 subexpr (std::unique_ptr<Subexpr> other);
53 query equal(
const std::Optional<int 64 _t>& rhs)
const ;
54 query not_equal(
const std::Optional<int 64 _t>& rhs)
const ;
55 查询更大(
const std::Optional<int 64 _t>& rhs)
const ;
56 query less(
const std::Optional<int 64 _t>& rhs)
const ;
57 query more_equal(
const std::Optional<int 64 _t>& rhs)
const ;
58 query less_equal(
const std::Optional<int 64 _t>& rhs)
const ;
60 查询 equal(
const std::Optional<bool>& rhs)
const ;
61 query not_equal(
const std::Optional<bool>& rhs)
const ;
63 query equal(
const std::Optional<double>& rhs)
const ;
64 查询 not_equal(
const std::Optional<double>& rhs)
const ;
65 查询更大(
const std::Optional<double>& rhs)
const ;
66 查询 less(
const std::Optional<double>& rhs)
const ;
67 query more_equal(
const std::Optional<double>& rhs)
const ;
68 query less_equal(
const std::Optional<double>& rhs)
const ;
70 query equal(
const std::Optional<binary>& rhs)
const ;
71 query not_equal(
const std::Optional<binary>& rhs)
const ;
73 query equal(
const std::Optional<timestamp>& rhs)
const ;
74 查询 not_equal(
const std::Optional<timestamp>& rhs)
const ;
75 查询更大(
const std::可选<timestamp>& rhs)
const ;
76 查询 less(
const std::Optional<timestamp>& rhs)
const ;
77 query more_equal(
const std::Optional<timestamp>& rhs)
const ;
78 query less_equal(
const std::Optional<timestamp>& rhs)
const ;
80 query equal(
const std::Optional<std::string>& rhs)
const ;
81 query not_equal(
const std::Optional<std::string>& rhs)
const ;
82 查询contains(
const std::Optional<std::string>& rhs,
bool case_sensitive =
true )
const ;
84 query equal(
const std::Optional<internal::bridge::uuid>& rhs)
const ;
85 query not_equal(
const std::Optional<internal::bridge::uuid>& rhs)
const ;
87 query equal(
const std::Optional<internal::bridge::object_id>& rhs)
const ;
88 query not_equal(
const std::Optional<internal::bridge::object_id>& rhs)
const ;
90 query equal(
const std::Optional<internal::bridge::decimal 128 >& rhs)
const ;
91 查询 not_equal(
const std::Optional<internal::bridge::decimal 128 >& rhs)
const ;
92 查询更大(
const std::Optional<internal::bridge::decimal 128 >& rhs)
const ;
93 query less(
const std::Optional<internal::bridge::decimal 128 >& rhs)
const ;
94 查询 more_equal(
const std::Optional<internal::bridge::decimal 128 >& rhs)
const ;
95 query less_equal(
const std::Optional<internal::bridge::decimal 128 >& rhs)
const ;
100 查询 equal(
const std::Optional<obj>&)
const ;
101 query not_equal(
const std::Optional<obj>&)
const ;
104 std::shared_ptr<Subexpr> m_subexpr;
118 link_chain & backlink(
consttable & origin , col_keyorigin_col_key
);
120 template <
typename >
128 std::shared_ptr<LinkChain> m_link_chain;
140 查询 and_query(
const 查询 &);
143 query (
const Query&);
144 Operator Query()
const ;
151 查询 & not_equal(
col_key colum_key, int 64 _t value);
153 query & more_equal(
col_key colum_key, int 64 _t value);
155 query & less_equal(
col_key colum_key, int 64 _t value);
156 query & between(
col_key colum_key, int 64 _t from, int 64 _t to);
162 查询 & more_equal(
col_key field_key,
double value);
163 查询 & less(
col_key colum_key,
double value);
165 query & between(
col_key colum_key,
double from,
double to);
200 query & equal(
col_key colum_key, std::string_view value,
bool case_sensitive =
true );
201 查询 & not_equal(
col_key colum_key, std::string_view value,
bool case_sensitive =
true );
204 query & contains(
col_key colum_key, std::string_view value,
bool case_sensitive =
true );
205 query & like(
col_key colum_key,
const std::string& value,
bool case_sensitive =
true );
216 查询 & equal(
col_key colum_key,
混合值,
bool case_sensitive =
true );
217 query & not_equal(
col_key field_key,
混合值,
bool case_sensitive =
true );
224 query & contains(
col_key colum_key,
混合值,
bool case_sensitive =
true );
225 查询 & like(
col_key colum_key,
混合值,
bool case_sensitive =
true );
229 查询 & not_equal(
col_key field_key,
bool value);
236 查询 &dictionary_has_value_for_key_not_equals(
col_key colum_key,
const std::string& key,
const Mixed & Value);
237 查询 &dictionary_has_value_for_key_great_than(
col_key colum_key,
const std::string& key,
const Mixed & Value);
238 查询 &dictionary_has_value_for_key_less_than(
col_key colum_key,
const std::string& key,
const Mixed & Value);
239 查询 &dictionary_has_value_for_key_great_than_equals(
col_keycolumn_key ,
const std::string& key,
const Mixed & Value);
240 查询 &dictionary_has_value_for_key_less_than_equals(
col_keycolumn_key ,
const std::string& key,
const Mixed & Value);
241 查询 &dictionary_contains_string_for_key(
col_key colum_key,
const std::string& key,
const std::string& value);
246 静态 查询 falsepredicate();
248 std::string description()
const ;
250 inline Query* get_query();
251#ifdef CPPREALM_HAVE_GENERATED_BRIDGE_TYPES
252 storage::Query m_query[ 1 ];
254 std::shared_ptr<Query> m_query;