Loading...
Searching...
No Matches
find.hpp
Go to the documentation of this file.
// Copyright 2009-present MongoDB, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <mongocxx/options/find-fwd.hpp> // IWYU pragma: export
//
#include <bsoncxx/v1/document/value.hpp>
#include <mongocxx/v1/cursor.hpp>
#include <mongocxx/v1/find_options.hpp> // IWYU pragma: export
#include <chrono>
#include <cstdint>
#include <utility>
#include <bsoncxx/document/view.hpp>
#include <bsoncxx/document/view_or_value.hpp>
#include <bsoncxx/stdx/optional.hpp>
#include <bsoncxx/string/view_or_value.hpp>
#include <bsoncxx/types/bson_value/value.hpp>
#include <bsoncxx/types/bson_value/view.hpp>
#include <bsoncxx/types/bson_value/view_or_value.hpp>
#include <mongocxx/cursor.hpp>
#include <mongocxx/hint.hpp>
#include <mongocxx/read_concern.hpp>
#include <mongocxx/read_preference.hpp>
#include <mongocxx/config/prelude.hpp>
namespace mongocxx {
namespace v_noabi {
namespace options {
class find {
public:
find() = default;
/* explicit(false) */ MONGOCXX_ABI_EXPORT_CDECL_UNSTABLE() find(v1::find_options opts);
explicit operator v1::find_options() const {
using bsoncxx::v_noabi::to_v1;
using mongocxx::v_noabi::to_v1;
v1::find_options ret;
if (_allow_disk_use) {
ret.allow_disk_use(*_allow_disk_use);
}
if (_allow_partial_results) {
ret.allow_partial_results(*_allow_partial_results);
}
if (_batch_size) {
ret.batch_size(*_batch_size);
}
if (_collation) {
ret.collation(bsoncxx::v1::document::value{to_v1(_collation->view())});
}
if (_cursor_type) {
ret.cursor_type(static_cast<v1::cursor::type>(*_cursor_type));
}
if (_hint) {
ret.hint(to_v1(*_hint));
}
if (_let) {
ret.let(bsoncxx::v1::document::value{to_v1(_let->view())});
}
if (_comment_option) {
ret.comment(bsoncxx::v1::types::value{to_v1(_comment_option->view())});
} else if (_comment) {
ret.comment(bsoncxx::v1::types::value{to_v1(_comment->view())});
}
if (_limit) {
ret.limit(*_limit);
}
if (_max) {
ret.max(bsoncxx::v1::document::value{to_v1(_max->view())});
}
if (_max_await_time) {
ret.max_await_time(*_max_await_time);
}
if (_max_time) {
ret.max_time(*_max_time);
}
if (_min) {
ret.min(bsoncxx::v1::document::value{to_v1(_min->view())});
}
if (_no_cursor_timeout) {
ret.no_cursor_timeout(*_no_cursor_timeout);
}
if (_projection) {
ret.projection(bsoncxx::v1::document::value{to_v1(_projection->view())});
}
if (_read_preference) {
ret.read_preference(to_v1(*_read_preference));
}
if (_read_concern) {
ret.read_concern(to_v1(*_read_concern));
}
if (_return_key) {
ret.return_key(*_return_key);
}
if (_show_record_id) {
ret.show_record_id(*_show_record_id);
}
if (_skip) {
ret.skip(*_skip);
}
if (_ordering) {
ret.sort(bsoncxx::v1::document::value{to_v1(_ordering->view())});
}
return ret;
}
find& allow_disk_use(bool allow_disk_use) {
_allow_disk_use = allow_disk_use;
return *this;
}
bsoncxx::v_noabi::stdx::optional<bool> const& allow_disk_use() const {
return _allow_disk_use;
}
find& allow_partial_results(bool allow_partial) {
_allow_partial_results = allow_partial;
return *this;
}
bsoncxx::v_noabi::stdx::optional<bool> const& allow_partial_results() const {
return _allow_partial_results;
}
find& batch_size(std::int32_t batch_size) {
_batch_size = batch_size;
return *this;
}
bsoncxx::v_noabi::stdx::optional<std::int32_t> const& batch_size() const {
return _batch_size;
}
find& collation(bsoncxx::v_noabi::document::view_or_value collation) {
_collation = std::move(collation);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view_or_value> const& collation() const {
return _collation;
}
find& comment(bsoncxx::v_noabi::string::view_or_value comment) {
_comment = std::move(comment);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::string::view_or_value> const& comment() const {
return _comment;
}
find& cursor_type(cursor::type cursor_type) {
_cursor_type = cursor_type;
return *this;
}
bsoncxx::v_noabi::stdx::optional<cursor::type> const& cursor_type() const {
return _cursor_type;
}
find& hint(v_noabi::hint index_hint) {
_hint = std::move(index_hint);
return *this;
}
bsoncxx::v_noabi::stdx::optional<v_noabi::hint> const& hint() const {
return _hint;
}
find& let(bsoncxx::v_noabi::document::view_or_value let) {
_let = std::move(let);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view_or_value> const let() const {
return _let;
}
find& comment_option(bsoncxx::v_noabi::types::bson_value::view_or_value comment) {
_comment_option = std::move(comment);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::types::bson_value::view_or_value> const& comment_option() const {
return _comment_option;
}
find& limit(std::int64_t limit) {
_limit = limit;
return *this;
}
bsoncxx::v_noabi::stdx::optional<std::int64_t> const& limit() const {
return _limit;
}
find& max(bsoncxx::v_noabi::document::view_or_value max) {
_max = std::move(max);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view_or_value> const& max() const {
return _max;
}
find& max_await_time(std::chrono::milliseconds max_await_time) {
_max_await_time = max_await_time;
return *this;
}
bsoncxx::v_noabi::stdx::optional<std::chrono::milliseconds> const& max_await_time() const {
return _max_await_time;
}
find& max_time(std::chrono::milliseconds max_time) {
_max_time = max_time;
return *this;
}
bsoncxx::v_noabi::stdx::optional<std::chrono::milliseconds> const& max_time() const {
return _max_time;
}
find& min(bsoncxx::v_noabi::document::view_or_value min) {
_min = std::move(min);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view_or_value> const& min() const {
return _min;
}
find& no_cursor_timeout(bool no_cursor_timeout) {
_no_cursor_timeout = no_cursor_timeout;
return *this;
}
bsoncxx::v_noabi::stdx::optional<bool> const& no_cursor_timeout() const {
return _no_cursor_timeout;
}
find& projection(bsoncxx::v_noabi::document::view_or_value projection) {
_projection = std::move(projection);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view_or_value> const& projection() const {
return _projection;
}
find& read_preference(v_noabi::read_preference rp) {
_read_preference = std::move(rp);
return *this;
}
bsoncxx::v_noabi::stdx::optional<v_noabi::read_preference> const& read_preference() const {
return _read_preference;
}
find& read_concern(v_noabi::read_concern rc) {
_read_concern = std::move(rc);
return *this;
}
bsoncxx::v_noabi::stdx::optional<v_noabi::read_concern> const& read_concern() const {
return _read_concern;
}
find& return_key(bool return_key) {
_return_key = return_key;
return *this;
}
bsoncxx::v_noabi::stdx::optional<bool> const& return_key() const {
return _return_key;
}
find& show_record_id(bool show_record_id) {
_show_record_id = show_record_id;
return *this;
}
bsoncxx::v_noabi::stdx::optional<bool> const& show_record_id() const {
return _show_record_id;
}
find& skip(std::int64_t skip) {
_skip = skip;
return *this;
}
bsoncxx::v_noabi::stdx::optional<std::int64_t> const& skip() const {
return _skip;
}
find& sort(bsoncxx::v_noabi::document::view_or_value ordering) {
_ordering = std::move(ordering);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view_or_value> const& sort() const {
return _ordering;
}
private:
bsoncxx::v_noabi::stdx::optional<bool> _allow_disk_use;
bsoncxx::v_noabi::stdx::optional<bool> _allow_partial_results;
bsoncxx::v_noabi::stdx::optional<std::int32_t> _batch_size;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view_or_value> _collation;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::string::view_or_value> _comment;
bsoncxx::v_noabi::stdx::optional<cursor::type> _cursor_type;
bsoncxx::v_noabi::stdx::optional<v_noabi::hint> _hint;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view_or_value> _let;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::types::bson_value::view_or_value> _comment_option;
bsoncxx::v_noabi::stdx::optional<std::int64_t> _limit;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view_or_value> _max;
bsoncxx::v_noabi::stdx::optional<std::chrono::milliseconds> _max_await_time;
bsoncxx::v_noabi::stdx::optional<std::chrono::milliseconds> _max_time;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view_or_value> _min;
bsoncxx::v_noabi::stdx::optional<bool> _no_cursor_timeout;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view_or_value> _projection;
bsoncxx::v_noabi::stdx::optional<v_noabi::read_preference> _read_preference;
bsoncxx::v_noabi::stdx::optional<v_noabi::read_concern> _read_concern;
bsoncxx::v_noabi::stdx::optional<bool> _return_key;
bsoncxx::v_noabi::stdx::optional<bool> _show_record_id;
bsoncxx::v_noabi::stdx::optional<std::int64_t> _skip;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view_or_value> _ordering;
};
} // namespace options
} // namespace v_noabi
} // namespace mongocxx
namespace mongocxx {
namespace v_noabi {
inline v_noabi::options::find from_v1(v1::find_options v) {
return {std::move(v)};
}
inline v1::find_options to_v1(v_noabi::options::find const& v) {
return v1::find_options{v};
}
} // namespace v_noabi
} // namespace mongocxx
#include <mongocxx/config/postlude.hpp>
bsoncxx::v1::document::value
A BSON document.
Definition value.hpp:44
bsoncxx::v1::stdx::optional
A polyfill for std::optional<T>.
Definition optional.hpp:799
bsoncxx::v1::types::value
A union of BSON type values.
Definition value.hpp:52
bsoncxx::v_noabi::string::view_or_value
A view-or-value variant type for strings.
Definition view_or_value.hpp:41
mongocxx::options::find::find
find()=default
Default initialization.
mongocxx::v1::cursor::type
type
Enumeration identifying the type of the cursor.
Definition cursor.hpp:48
mongocxx::v1::find_options
Options for a "find" command.
Definition find_options.hpp:72
mongocxx::v1::find_options::hint
find_options & hint(v1::hint v)
Set the "hint" field.
mongocxx::v1::find_options::read_preference
find_options & read_preference(v1::read_preference v)
Set the "readPreference" field.
mongocxx::v1::find_options::comment
find_options & comment(bsoncxx::v1::types::value v)
Set the "comment" field.
mongocxx::v1::find_options::max
find_options & max(bsoncxx::v1::document::value v)
Set the "max" field.
mongocxx::v1::find_options::show_record_id
find_options & show_record_id(bool v)
Set the "showRecordId" field.
mongocxx::v1::find_options::batch_size
find_options & batch_size(std::int32_t v)
Set the "batchSize" field.
mongocxx::v1::find_options::read_concern
find_options & read_concern(v1::read_concern v)
Set the "readConcern" field.
mongocxx::v1::find_options::return_key
find_options & return_key(bool v)
Set the "returnKey" field.
mongocxx::v1::find_options::collation
find_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
mongocxx::v1::find_options::sort
find_options & sort(bsoncxx::v1::document::value v)
Set the "sort" field.
mongocxx::v1::find_options::allow_disk_use
find_options & allow_disk_use(bool v)
Set the "allowDiskUse" field.
mongocxx::v1::find_options::projection
find_options & projection(bsoncxx::v1::document::value v)
Set the "projection" field.
mongocxx::v1::find_options::max_await_time
find_options & max_await_time(std::chrono::milliseconds v)
Set the "maxAwaitTimeMS" field.
mongocxx::v1::find_options::max_time
find_options & max_time(std::chrono::milliseconds v)
Set the "maxTimeMS" field.
mongocxx::v1::find_options::allow_partial_results
find_options & allow_partial_results(bool v)
Set the "allowPartialResults" field.
mongocxx::v1::find_options::no_cursor_timeout
find_options & no_cursor_timeout(bool v)
Set the "noCursorTimeout" field.
mongocxx::v1::find_options::skip
find_options & skip(std::int64_t v)
Set the "skip" field.
mongocxx::v1::find_options::limit
find_options & limit(std::int64_t v)
Set the "limit" field.
mongocxx::v1::find_options::min
find_options & min(bsoncxx::v1::document::value v)
Set the "min" field.
mongocxx::v1::find_options::let
find_options & let(bsoncxx::v1::document::value v)
Set the "let" field.
mongocxx::v1::find_options::cursor_type
find_options & cursor_type(v1::cursor::type v)
Set the "cursorType" field.
mongocxx::v_noabi::hint
The index to "hint" or force a MongoDB server to use when performing a query.
Definition hint.hpp:42
mongocxx::v_noabi::options::find
Used by MongoDB find operations.
Definition find.hpp:52
mongocxx::v_noabi::options::find::read_concern
find & read_concern(v_noabi::read_concern rc)
Sets the read_concern for this operation.
Definition find.hpp:715
mongocxx::v_noabi::options::find::collation
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & collation() const
Retrieves the current collation for this operation.
Definition find.hpp:287
mongocxx::v_noabi::options::find::cursor_type
bsoncxx::v_noabi::stdx::optional< cursor::type > const & cursor_type() const
Gets the current cursor type.
Definition find.hpp:352
mongocxx::v_noabi::options::find::min
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & min() const
Sets the current inclusive lower bound for a specific index.
Definition find.hpp:606
mongocxx::v_noabi::options::find::sort
find & sort(bsoncxx::v_noabi::document::view_or_value ordering)
The order in which to return matching documents. If $orderby also exists in the modifiers document,...
Definition find.hpp:844
mongocxx::v_noabi::options::find::let
find & let(bsoncxx::v_noabi::document::view_or_value let)
Set the value of the let option.
Definition find.hpp:402
mongocxx::v_noabi::options::find::max_await_time
find & max_await_time(std::chrono::milliseconds max_await_time)
The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query...
Definition find.hpp:532
mongocxx::v_noabi::options::find::hint
bsoncxx::v_noabi::stdx::optional< v_noabi::hint > const & hint() const
Gets the current hint.
Definition find.hpp:385
mongocxx::v_noabi::options::find::return_key
find & return_key(bool return_key)
Sets whether to return the index keys associated with the query results, instead of the actual query ...
Definition find.hpp:748
mongocxx::v_noabi::options::find::comment_option
find & comment_option(bsoncxx::v_noabi::types::bson_value::view_or_value comment)
Set the value of the comment option.
Definition find.hpp:435
mongocxx::v_noabi::options::find::sort
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & sort() const
Gets the current sort ordering for this query.
Definition find.hpp:857
mongocxx::v_noabi::options::find::no_cursor_timeout
find & no_cursor_timeout(bool no_cursor_timeout)
Sets the cursor flag to prevent cursor from timing out server-side due to a period of inactivity.
Definition find.hpp:624
mongocxx::v_noabi::options::find::hint
find & hint(v_noabi::hint index_hint)
Sets the index to use for this operation.
Definition find.hpp:372
mongocxx::v_noabi::options::find::allow_partial_results
find & allow_partial_results(bool allow_partial)
Sets whether to allow partial results from a mongos if some shards are down (instead of throwing an e...
Definition find.hpp:213
mongocxx::v_noabi::options::find::allow_partial_results
bsoncxx::v_noabi::stdx::optional< bool > const & allow_partial_results() const
Gets the current setting for allowing partial results from mongos.
Definition find.hpp:226
mongocxx::v_noabi::options::find::find
find()=default
Default initialization.
mongocxx::v_noabi::options::find::limit
bsoncxx::v_noabi::stdx::optional< std::int64_t > const & limit() const
Gets the current limit.
Definition find.hpp:480
mongocxx::v_noabi::options::find::allow_disk_use
find & allow_disk_use(bool allow_disk_use)
Enables writing to temporary files on the server. When set to true, the server can write temporary da...
Definition find.hpp:183
mongocxx::v_noabi::options::find::limit
find & limit(std::int64_t limit)
Sets maximum number of documents to return.
Definition find.hpp:467
mongocxx::v_noabi::options::find::let
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const let() const
Gets the current value of the let option.
Definition find.hpp:416
mongocxx::v_noabi::options::find::show_record_id
bsoncxx::v_noabi::stdx::optional< bool > const & show_record_id() const
Gets the current setting for whether the record identifier is returned for each document in the query...
Definition find.hpp:796
mongocxx::v_noabi::options::find::max_time
find & max_time(std::chrono::milliseconds max_time)
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.
Definition find.hpp:563
mongocxx::v_noabi::options::find::batch_size
bsoncxx::v_noabi::stdx::optional< std::int32_t > const & batch_size() const
The current batch size setting.
Definition find.hpp:256
mongocxx::v_noabi::options::find::cursor_type
find & cursor_type(cursor::type cursor_type)
Indicates the type of cursor to use for this query.
Definition find.hpp:339
mongocxx::v_noabi::options::find::show_record_id
find & show_record_id(bool show_record_id)
Sets whether to include the record identifier for each document in the query results.
Definition find.hpp:781
mongocxx::v_noabi::options::find::min
find & min(bsoncxx::v_noabi::document::view_or_value min)
Gets the current inclusive lower bound for a specific index.
Definition find.hpp:593
mongocxx::v_noabi::options::find::allow_disk_use
bsoncxx::v_noabi::stdx::optional< bool > const & allow_disk_use() const
Gets the current setting for allowing disk use on the server.
Definition find.hpp:195
mongocxx::v_noabi::options::find::no_cursor_timeout
bsoncxx::v_noabi::stdx::optional< bool > const & no_cursor_timeout() const
Gets the current no_cursor_timeout setting.
Definition find.hpp:637
mongocxx::v_noabi::options::find::find_options
operator v1::find_options() const
Convert to the mongocxx::v1 equivalent.
Definition find.hpp:70
mongocxx::v_noabi::options::find::skip
find & skip(std::int64_t skip)
Sets the number of documents to skip before returning results.
Definition find.hpp:813
mongocxx::v_noabi::options::find::comment_option
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > const & comment_option() const
Gets the current value of the comment option.
Definition find.hpp:451
mongocxx::v_noabi::options::find::comment
find & comment(bsoncxx::v_noabi::string::view_or_value comment)
Attaches a comment to the query. If $comment also exists in the modifiers document then the comment f...
Definition find.hpp:307
mongocxx::v_noabi::options::find::skip
bsoncxx::v_noabi::stdx::optional< std::int64_t > const & skip() const
Gets the current number of documents to skip.
Definition find.hpp:826
mongocxx::v_noabi::options::find::read_preference
find & read_preference(v_noabi::read_preference rp)
Sets the read_preference for this operation.
Definition find.hpp:684
mongocxx::v_noabi::options::find::projection
find & projection(bsoncxx::v_noabi::document::view_or_value projection)
Sets a projection which limits the returned fields for all matching documents.
Definition find.hpp:654
mongocxx::v_noabi::options::find::max_await_time
bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > const & max_await_time() const
The maximum amount of time for the server to wait on new documents to satisfy a tailable cursor query...
Definition find.hpp:546
mongocxx::v_noabi::options::find::max
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & max() const
Sets the current exclusive upper bound for a specific index.
Definition find.hpp:510
mongocxx::v_noabi::options::find::comment
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & comment() const
Gets the current comment attached to this query.
Definition find.hpp:322
mongocxx::v_noabi::options::find::max
find & max(bsoncxx::v_noabi::document::view_or_value max)
Gets the current exclusive upper bound for a specific index.
Definition find.hpp:497
mongocxx::v_noabi::options::find::max_time
bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > const & max_time() const
The current max_time_ms setting.
Definition find.hpp:576
mongocxx::v_noabi::options::find::projection
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & projection() const
Gets the current projection set on this query.
Definition find.hpp:667
mongocxx::v_noabi::options::find::batch_size
find & batch_size(std::int32_t batch_size)
Sets the number of documents to return per batch.
Definition find.hpp:243
mongocxx::v_noabi::options::find::read_preference
bsoncxx::v_noabi::stdx::optional< v_noabi::read_preference > const & read_preference() const
The current read_preference for this operation.
Definition find.hpp:698
mongocxx::v_noabi::options::find::return_key
bsoncxx::v_noabi::stdx::optional< bool > const & return_key() const
Gets the current setting for returning the index keys associated with the query results,...
Definition find.hpp:764
mongocxx::v_noabi::options::find::read_concern
bsoncxx::v_noabi::stdx::optional< v_noabi::read_concern > const & read_concern() const
The current read_concern for this operation.
Definition find.hpp:729
mongocxx::v_noabi::options::find::collation
find & collation(bsoncxx::v_noabi::document::view_or_value collation)
Sets the collation for this operation.
Definition find.hpp:273
mongocxx::v_noabi::read_concern
Controls the consistency and isolation properties of data read from replica sets and sharded clusters...
Definition read_concern.hpp:54
mongocxx::v_noabi::read_preference
Describes how MongoDB clients route read operations to the members of a replica set or sharded cluste...
Definition read_preference.hpp:59
view_or_value.hpp
Provides bsoncxx::v_noabi::document::view_or_value.
find-fwd.hpp
Declares mongocxx::v_noabi::options::find.
find_options.hpp
Provides mongocxx::v1::find_options.
MONGOCXX_ABI_EXPORT_CDECL_UNSTABLE
#define MONGOCXX_ABI_EXPORT_CDECL_UNSTABLE(...)
Equivalent to MONGOCXX_ABI_EXPORT_UNSTABLE with MONGOCXX_ABI_CDECL.
Definition config.hpp:28
postlude.hpp
The mongocxx v_noabi macro guard postlude header.
prelude.hpp
The mongocxx v_noabi macro guard prelude header.
bsoncxx::v_noabi::document::view_or_value
v_noabi::view_or_value< v_noabi::document::view, v_noabi::document::value > view_or_value
Equivalent to v_noabi::view_or_value<v_noabi::document::view, v_noabi::document::value>.
Definition view_or_value.hpp:30
bsoncxx::v_noabi::types::bson_value::view_or_value
v_noabi::view_or_value< view, value > view_or_value
Equivalent to v_noabi::view_or_value<view, value>.
Definition view_or_value.hpp:31
bsoncxx::v_noabi::to_v1
v1::element::view to_v1(v_noabi::array::element const &v)
Convert to the bsoncxx::v1 equivalent of v.
Definition element.hpp:132
mongocxx::v1
Declares entities whose ABI stability is guaranteed for documented symbols.
mongocxx::v_noabi::options
Declares entities representing options to use with various commands.
mongocxx::v_noabi
Declares entities whose ABI stability is NOT guaranteed.
mongocxx::v_noabi::to_v1
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
mongocxx::v_noabi::from_v1
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
mongocxx
The top-level namespace within which all mongocxx library entities are declared.
view_or_value.hpp
Provides bsoncxx::v_noabi::string::view_or_value.
view_or_value.hpp
Provides bsoncxx::v_noabi::types::bson_value::view_or_value.
cursor.hpp
Provides mongocxx::v1::cursor.
value.hpp
Provides bsoncxx::v1::document::value.
view.hpp
Provides bsoncxx::v_noabi::document::view.
optional.hpp
Provides std::optional-related polyfills for library API usage.
value.hpp
Provides bsoncxx::v_noabi::types::bson_value::value.
view.hpp
Provides bsoncxx::v_noabi::types::bson_value::view.
cursor.hpp
Provides mongocxx::v_noabi::cursor.
hint.hpp
Provides mongocxx::v_noabi::hint.
read_concern.hpp
Provides mongocxx::v_noabi::read_concern.
read_preference.hpp
Provides mongocxx::v_noabi::read_preference.