86 const
bsoncxx::v_noabi::document::view_or_value& index_options = {},
115 const
bsoncxx::v_noabi::document::view_or_value& keys,
116 const
bsoncxx::v_noabi::document::view_or_value& index_options = {},
258 stdx::string_view name,
287 const
bsoncxx::v_noabi::document::view_or_value& index_options = {},
318 const
bsoncxx::v_noabi::document::view_or_value& keys,
319 const
bsoncxx::v_noabi::document::view_or_value& index_options = {},
408 friend ::mongocxx::v_noabi::collection;
416 std::unique_ptr<impl> _impl;
A read-only BSON document that owns its underlying buffer. When a document::value goes out of scope,...
Definition value.hpp:38
A polyfill for std::optional<T>.
Definition optional.hpp:874
Use a session for a sequence of operations, optionally with either causal consistency or snapshots.
Definition client_session.hpp:48
Class representing a client connection to MongoDB.
Definition client.hpp:62
Class representing a pointer to the result set of a query on a MongoDB server.
Definition cursor.hpp:42
Class representing an index on a MongoDB server.
Definition index_model.hpp:32
Class representing a MongoDB index view.
Definition index_view.hpp:39
stdx::optional< std::string > create_one(const bsoncxx::v_noabi::document::view_or_value &keys, const bsoncxx::v_noabi::document::view_or_value &index_options={}, const options::index_view &options=options::index_view{})
Creates an index. A convenience method that calls create_many.
cursor list()
Returns a cursor over all the indexes.
void drop_one(stdx::string_view name, const options::index_view &options=options::index_view{})
Drops a single index by name.
void drop_all(const options::index_view &options=options::index_view{})
Drops all indexes in the collection.
bsoncxx::v_noabi::document::value create_many(const std::vector< index_model > &indexes, const options::index_view &options=options::index_view{})
Adds a container of indexes to the collection.
cursor list(const client_session &session)
Returns a cursor over all the indexes.
Class representing optional arguments to IndexView operations.
Definition index_view.hpp:35
Provides mongocxx::v_noabi::client_session.
Declares mongocxx::v_noabi::collection.
Provides mongocxx::v_noabi::cursor.
Provides bsoncxx::v_noabi::document::value.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition fwd.hpp:222
Provides mongocxx::v_noabi::index_model.
Declares mongocxx::v_noabi::index_view.
The mongocxx macro guard postlude header.
The mongocxx macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
The top-level namespace within which all mongocxx library entities are declared.
The top-level namespace reserved for the C++ standard library.
Provides std::optional-related polyfills for library API usage.
Provides mongocxx::v_noabi::options::index_view.