MongoDB C++ Driver
mongocxx-3.6.2
|
20 #include <bsoncxx/document/view_or_value.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
22 #include <mongocxx/hint.hpp>
23 #include <mongocxx/write_concern.hpp>
25 #include <mongocxx/config/prelude.hpp>
28 MONGOCXX_INLINE_NAMESPACE_BEGIN
57 const stdx::optional<bsoncxx::document::view_or_value>&
collation()
const;
80 const stdx::optional<std::chrono::milliseconds>&
max_time()
const;
103 const stdx::optional<bsoncxx::document::view_or_value>&
projection()
const;
129 const stdx::optional<bsoncxx::document::view_or_value>&
sort()
const;
177 const stdx::optional<class hint>&
hint()
const;
180 stdx::optional<bsoncxx::document::view_or_value> _collation;
181 stdx::optional<std::chrono::milliseconds> _max_time;
182 stdx::optional<bsoncxx::document::view_or_value> _projection;
183 stdx::optional<bsoncxx::document::view_or_value> _ordering;
184 stdx::optional<mongocxx::write_concern> _write_concern;
185 stdx::optional<class hint> _hint;
189 MONGOCXX_INLINE_NAMESPACE_END
192 #include <mongocxx/config/postlude.hpp>
find_one_and_delete & hint(class hint index_hint)
Sets the index to use for this operation.
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
const stdx::optional< mongocxx::write_concern > & write_concern() const
Gets the current write concern.
Class representing a view-or-value variant type.
Definition: view_or_value.hpp:30
Class representing the server-side requirement for reporting the success of a write operation.
Definition: write_concern.hpp:56
const stdx::optional< bsoncxx::document::view_or_value > & collation() const
Retrieves the current collation for this operation.
find_one_and_delete & max_time(std::chrono::milliseconds max_time)
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.
Class representing the optional arguments to a MongoDB find_and_modify delete operation.
Definition: find_one_and_delete.hpp:34
find_one_and_delete & projection(bsoncxx::document::view_or_value projection)
Sets a projection that limits the fields to return.
const stdx::optional< class hint > & hint() const
Gets the current hint.
find_one_and_delete & write_concern(mongocxx::write_concern write_concern)
Sets the write concern for this operation.
const stdx::optional< std::chrono::milliseconds > & max_time() const
The current max_time setting.
find_one_and_delete & collation(bsoncxx::document::view_or_value collation)
Sets the collation for this operation.
Class representing a hint to be passed to a database operation.
Definition: hint.hpp:32
const stdx::optional< bsoncxx::document::view_or_value > & sort() const
Gets the current sort ordering.
const stdx::optional< bsoncxx::document::view_or_value > & projection() const
Gets the current projection set on this operation.
find_one_and_delete & sort(bsoncxx::document::view_or_value ordering)
Sets the order to search for a matching document.