19 #include <mongocxx/client_session.hpp>
20 #include <mongocxx/database.hpp>
21 #include <mongocxx/options/client.hpp>
22 #include <mongocxx/options/client_encryption.hpp>
23 #include <mongocxx/options/client_session.hpp>
24 #include <mongocxx/read_concern.hpp>
25 #include <mongocxx/read_preference.hpp>
26 #include <mongocxx/stdx.hpp>
27 #include <mongocxx/uri.hpp>
28 #include <mongocxx/write_concern.hpp>
30 #include <mongocxx/config/prelude.hpp>
36 MONGOCXX_INLINE_NAMESPACE_BEGIN
99 explicit operator bool()
const noexcept;
196 class
database database(bsoncxx::string::view_or_value name) const&& = delete;
209 MONGOCXX_INLINE class
database operator[](bsoncxx::string::view_or_value name) const&;
210 MONGOCXX_INLINE class
database operator[](bsoncxx::string::view_or_value name) const&& = delete;
227 cursor list_databases() const;
245 cursor list_databases(const client_session& session) const;
263 cursor list_databases(const bsoncxx::document::view_or_value opts) const;
278 std::vector<std::string> list_database_names(
279 const bsoncxx::document::view_or_value filter = {}) const;
294 client_session start_session(const options::client_session& options = {});
310 change_stream watch(const options::change_stream& options = {});
323 change_stream watch(const client_session& session, const options::change_stream& options = {});
341 change_stream watch(const pipeline& pipe, const options::change_stream& options = {});
359 const pipeline& pipe,
360 const options::change_stream& options = {});
391 MONGOCXX_PRIVATE explicit
client(void* implementation);
393 MONGOCXX_PRIVATE
change_stream _watch(const client_session* session,
394 const pipeline& pipe,
395 const options::change_stream& options);
397 class MONGOCXX_PRIVATE impl;
399 MONGOCXX_PRIVATE impl& _get_impl();
400 MONGOCXX_PRIVATE const impl& _get_impl() const;
402 std::unique_ptr<impl> _impl;
405 MONGOCXX_INLINE
database client::operator[](bsoncxx::string::view_or_value name) const& {
409 MONGOCXX_INLINE_NAMESPACE_END
412 #include <mongocxx/config/postlude.hpp>