19 #include <bsoncxx/document/view_or_value.hpp>
20 #include <bsoncxx/string/view_or_value.hpp>
21 #include <bsoncxx/types.hpp>
22 #include <bsoncxx/types/bson_value/view_or_value.hpp>
23 #include <mongocxx/stdx.hpp>
25 #include <mongocxx/config/prelude.hpp>
28 inline namespace v_noabi {
77 const bsoncxx::stdx::optional<bsoncxx::string::view_or_value>&
full_document()
const;
99 bsoncxx::string::view_or_value full_doc_before_change);
148 const stdx::optional<bsoncxx::types::bson_value::view_or_value>&
comment()
const;
173 const stdx::optional<bsoncxx::document::view_or_value>&
resume_after()
const;
200 const stdx::optional<bsoncxx::document::view_or_value>&
start_after()
const;
220 const stdx::optional<bsoncxx::document::view_or_value>&
collation()
const;
260 friend class ::mongocxx::client;
261 friend class ::mongocxx::collection;
262 friend class ::mongocxx::database;
264 bsoncxx::document::value as_bson()
const;
265 stdx::optional<bsoncxx::string::view_or_value> _full_document;
266 stdx::optional<bsoncxx::string::view_or_value> _full_document_before_change;
267 stdx::optional<std::int32_t> _batch_size;
268 stdx::optional<bsoncxx::types::bson_value::view_or_value> _comment;
269 stdx::optional<bsoncxx::document::view_or_value> _collation;
270 stdx::optional<bsoncxx::document::view_or_value> _resume_after;
271 stdx::optional<bsoncxx::document::view_or_value> _start_after;
272 stdx::optional<std::chrono::milliseconds> _max_await_time;
276 bsoncxx::types::b_timestamp _start_at_operation_time = {};
277 bool _start_at_operation_time_set =
false;
283 #include <mongocxx/config/postlude.hpp>
Class representing a view-or-value variant type.
Definition: view_or_value.hpp:29
Class representing MongoDB change stream options.
Definition: change_stream.hpp:38
change_stream & collation(bsoncxx::document::view_or_value collation)
Sets the collation for this operation.
const bsoncxx::stdx::optional< bsoncxx::string::view_or_value > & full_document_before_change() const
Gets the current fullDocumentBeforeChange option.
change_stream & batch_size(std::int32_t batch_size)
Sets the number of documents to return per batch.
change_stream & resume_after(bsoncxx::document::view_or_value resume_after)
Specifies the logical starting point for the new change stream.
const stdx::optional< bsoncxx::document::view_or_value > & resume_after() const
Retrieves the current resumeToken for this change stream.
const bsoncxx::stdx::optional< bsoncxx::string::view_or_value > & full_document() const
Gets the current fullDocument option.
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_after(bsoncxx::document::view_or_value token)
Specifies the logical starting point of the new change stream.
const stdx::optional< bsoncxx::document::view_or_value > & collation() const
Retrieves the current collation for this operation.
const stdx::optional< bsoncxx::types::bson_value::view_or_value > & comment() const
Gets the current value of the comment option.
const stdx::optional< bsoncxx::document::view_or_value > & start_after() const
Retrieves the current startAfter token for this change stream.
change_stream & start_at_operation_time(bsoncxx::types::b_timestamp timestamp)
Specifies the logical starting point for the new change stream.
change_stream & full_document(bsoncxx::string::view_or_value full_doc)
Sets the fullDocument option for the $changeStream.
const stdx::optional< std::chrono::milliseconds > & max_await_time() const
The current max_time setting.
change_stream & full_document_before_change(bsoncxx::string::view_or_value full_doc_before_change)
Sets the fullDocumentBeforeChange option for the $changeStream.
const stdx::optional< std::int32_t > & batch_size() const
The current batch size setting.
change_stream & comment(bsoncxx::types::bson_value::view_or_value comment)
Sets the current value of the comment option.
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24