MongoDB C++ Driver
mongocxx-3.6.2
|
19 #include <bsoncxx/document/view_or_value.hpp>
20 #include <bsoncxx/string/view_or_value.hpp>
21 #include <bsoncxx/types.hpp>
22 #include <mongocxx/stdx.hpp>
24 #include <mongocxx/config/prelude.hpp>
27 MONGOCXX_INLINE_NAMESPACE_BEGIN
65 const bsoncxx::stdx::optional<bsoncxx::string::view_or_value>&
full_document()
const;
110 const stdx::optional<bsoncxx::document::view_or_value>&
resume_after()
const;
137 const stdx::optional<bsoncxx::document::view_or_value>&
start_after()
const;
157 const stdx::optional<bsoncxx::document::view_or_value>&
collation()
const;
197 friend class ::mongocxx::client;
198 friend class ::mongocxx::collection;
199 friend class ::mongocxx::database;
202 stdx::optional<bsoncxx::string::view_or_value> _full_document;
203 stdx::optional<std::int32_t> _batch_size;
204 stdx::optional<bsoncxx::document::view_or_value> _collation;
205 stdx::optional<bsoncxx::document::view_or_value> _resume_after;
206 stdx::optional<bsoncxx::document::view_or_value> _start_after;
207 stdx::optional<std::chrono::milliseconds> _max_await_time;
212 bool _start_at_operation_time_set =
false;
215 MONGOCXX_INLINE_NAMESPACE_END
218 #include <mongocxx/config/postlude.hpp>
const stdx::optional< std::chrono::milliseconds > & max_await_time() const
The current max_time setting.
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
const stdx::optional< bsoncxx::document::view_or_value > & collation() const
Retrieves the current collation for this operation.
change_stream & collation(bsoncxx::document::view_or_value collation)
Sets the collation for this operation.
const stdx::optional< bsoncxx::document::view_or_value > & resume_after() const
Retrieves the current resumeToken for this change stream.
A read-only BSON document that owns its underlying buffer.
Definition: value.hpp:33
const bsoncxx::stdx::optional< bsoncxx::string::view_or_value > & full_document() const
Gets the current fullDocument setting.
Class representing a view-or-value variant type for strings.
Definition: view_or_value.hpp:36
change_stream & start_after(bsoncxx::document::view_or_value token)
Specifies the logical starting point of the new change stream.
A BSON replication timestamp value.
Definition: types.hpp:561
const stdx::optional< bsoncxx::document::view_or_value > & start_after() const
Retrieves the current startAfter token for this change stream.
change_stream & full_document(bsoncxx::string::view_or_value full_doc)
Sets the fullDocument stage for the $changeStream.
change_stream & resume_after(bsoncxx::document::view_or_value resume_after)
Specifies the logical starting point for the new change stream.
Definition: change_stream.hpp:35
change_stream & batch_size(std::int32_t batch_size)
Sets the number of documents to return per batch.
change_stream & max_await_time(std::chrono::milliseconds max_time)
Sets the maximum amount of time for for the server to wait on new documents to satisfy a change strea...
change_stream & start_at_operation_time(bsoncxx::types::b_timestamp timestamp)
Specifies the logical starting point for the new change stream.
const stdx::optional< std::int32_t > & batch_size() const
The current batch size setting.