55 index_view(index_view&& other)
noexcept =
default;
56 index_view& operator=(index_view&& other)
noexcept =
default;
58 ~index_view() =
default;
60 index_view(index_view
const& other) =
delete;
61 index_view& operator=(index_view
const& other) =
delete;
77 return std::move(_indexes);
462 return {std::move(v)};
A polyfill for std::optional<T>.
Definition optional.hpp:799
A read-only BSON document that owns its underlying buffer.
Definition value.hpp:48
Support for MongoDB indexes.
Definition indexes.hpp:58
Supports MongoDB client session operations.
Definition client_session.hpp:58
A cursor over the documents returned by a query to a MongoDB server.
Definition cursor.hpp:50
Used by mongocxx::v_noabi::index_view.
Definition index_model.hpp:32
A MongoDB index.
Definition index_view.hpp:50
void drop_one(bsoncxx::v_noabi::stdx::string_view name, v_noabi::options::index_view const &options={})
Drops a single index by name.
v_noabi::cursor list()
Returns a cursor over all the indexes.
v_noabi::cursor list(v_noabi::client_session const &session)
Returns a cursor over all the indexes.
index_view(v1::indexes indexes)
Construct with the mongocxx::v1 equivalent.
Definition index_view.hpp:66
void drop_one(bsoncxx::v_noabi::document::view_or_value const &keys, bsoncxx::v_noabi::document::view_or_value const &index_options={}, v_noabi::options::index_view const &options={})
Attempts to drop a single index from the collection given the keys and options.
Definition index_view.hpp:328
bsoncxx::v_noabi::document::value create_many(std::vector< v_noabi::index_model > const &indexes, v_noabi::options::index_view const &options={})
Adds a container of indexes to the collection.
bsoncxx::v_noabi::stdx::optional< std::string > create_one(bsoncxx::v_noabi::document::view_or_value const &keys, bsoncxx::v_noabi::document::view_or_value const &index_options={}, v_noabi::options::index_view const &options={})
Creates an index. A convenience method that calls create_many.
Definition index_view.hpp:122
void drop_all(options::index_view const &options={})
Drops all indexes in the collection.
void drop_one(v_noabi::client_session const &session, bsoncxx::v_noabi::document::view_or_value const &keys, bsoncxx::v_noabi::document::view_or_value const &index_options={}, v_noabi::options::index_view const &options={})
Attempts to drop a single index from the collection given the keys and options.
Definition index_view.hpp:361
bsoncxx::v_noabi::stdx::optional< std::string > create_one(v_noabi::client_session const &session, bsoncxx::v_noabi::document::view_or_value const &keys, bsoncxx::v_noabi::document::view_or_value const &index_options={}, v_noabi::options::index_view const &options={})
Creates an index. A convenience method that calls create_many.
Definition index_view.hpp:153
operator v1::indexes() &&
Convert to the mongocxx::v1 equivalent.
Definition index_view.hpp:76
Used by MongoDB index view operations.
Definition index_view.hpp:45
Provides bsoncxx::v_noabi::document::view_or_value.
Provides mongocxx::v_noabi::index_model.
Declares mongocxx::v_noabi::index_view.
Provides mongocxx::v1::indexes.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
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
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities representing options to use with various commands.
Declares entities whose ABI stability is NOT guaranteed.
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
The top-level namespace within which all mongocxx library entities are declared.
Provides mongocxx::v_noabi::options::index_view.
Provides bsoncxx::v_noabi::document::value.
Provides std::optional-related polyfills for library API usage.
Provides std::string_view-related polyfills for library API usage.
Provides mongocxx::v_noabi::client_session.
Declares mongocxx::v_noabi::collection.
Provides mongocxx::v_noabi::cursor.