File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ void find::comment(std::string comment) {
34
34
_comment = comment;
35
35
}
36
36
37
+ void find::cursor_type (enum cursor_type cursor_type) {
38
+ _cursor_type = cursor_type;
39
+ }
40
+
37
41
void find::limit (std::int32_t limit) {
38
42
_limit = limit;
39
43
}
@@ -78,6 +82,14 @@ const stdx::optional<std::int32_t>& find::batch_size() const {
78
82
return _batch_size;
79
83
}
80
84
85
+ const stdx::optional<std::string>& find::comment () const {
86
+ return _comment;
87
+ }
88
+
89
+ const stdx::optional<cursor_type>& find::cursor_type () const {
90
+ return _cursor_type;
91
+ }
92
+
81
93
const stdx::optional<std::int32_t >& find::limit () const {
82
94
return _limit;
83
95
}
Original file line number Diff line number Diff line change @@ -26,13 +26,14 @@ namespace mongocxx {
26
26
MONGOCXX_INLINE_NAMESPACE_BEGIN
27
27
namespace options {
28
28
29
+ enum class cursor_type : std::uint8_t { k_non_tailable, k_tailable, k_tailable_await };
30
+
29
31
// /
30
32
// / Class representing the optional arguments to a MongoDB query.
31
33
// /
32
34
class MONGOCXX_API find {
33
35
34
36
public:
35
- enum class cursor_type : std::uint8_t { k_non_tailable, k_tailable, k_tailable_await };
36
37
37
38
// /
38
39
// / Sets whether to allow partial results from a mongos if some shards are down (instead of
@@ -101,7 +102,7 @@ class MONGOCXX_API find {
101
102
// /
102
103
// / @see http://docs.mongodb.org/meta-driver/latest/legacy/mongodb-wire-protocol/#op-query
103
104
// /
104
- void cursor_type (cursor_type cursor_type);
105
+ void cursor_type (enum cursor_type cursor_type);
105
106
106
107
// /
107
108
// / Gets the current cursor type.
You can’t perform that action at this time.
0 commit comments