Module: Mongo

Extended by:
Forwardable
Defined in:
build/ruby-driver-v2.19/lib/mongo/id.rb,
build/ruby-driver-v2.19/lib/mongo.rb,
build/ruby-driver-v2.19/lib/mongo/uri.rb,
build/ruby-driver-v2.19/lib/mongo/auth.rb,
build/ruby-driver-v2.19/lib/mongo/lint.rb,
build/ruby-driver-v2.19/lib/mongo/crypt.rb,
build/ruby-driver-v2.19/lib/mongo/dbref.rb,
build/ruby-driver-v2.19/lib/mongo/error.rb,
build/ruby-driver-v2.19/lib/mongo/event.rb,
build/ruby-driver-v2.19/lib/mongo/index.rb,
build/ruby-driver-v2.19/lib/mongo/utils.rb,
build/ruby-driver-v2.19/lib/mongo/client.rb,
build/ruby-driver-v2.19/lib/mongo/config.rb,
build/ruby-driver-v2.19/lib/mongo/cursor.rb,
build/ruby-driver-v2.19/lib/mongo/logger.rb,
build/ruby-driver-v2.19/lib/mongo/server.rb,
build/ruby-driver-v2.19/lib/mongo/socket.rb,
build/ruby-driver-v2.19/lib/mongo/address.rb,
build/ruby-driver-v2.19/lib/mongo/auth/cr.rb,
build/ruby-driver-v2.19/lib/mongo/cluster.rb,
build/ruby-driver-v2.19/lib/mongo/session.rb,
build/ruby-driver-v2.19/lib/mongo/timeout.rb,
build/ruby-driver-v2.19/lib/mongo/version.rb,
build/ruby-driver-v2.19/lib/mongo/auth/aws.rb,
build/ruby-driver-v2.19/lib/mongo/database.rb,
build/ruby-driver-v2.19/lib/mongo/loggable.rb,
build/ruby-driver-v2.19/lib/mongo/auth/base.rb,
build/ruby-driver-v2.19/lib/mongo/auth/ldap.rb,
build/ruby-driver-v2.19/lib/mongo/auth/user.rb,
build/ruby-driver-v2.19/lib/mongo/auth/x509.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms.rb,
build/ruby-driver-v2.19/lib/mongo/grid/file.rb,
build/ruby-driver-v2.19/lib/mongo/operation.rb,
build/ruby-driver-v2.19/lib/mongo/retryable.rb,
build/ruby-driver-v2.19/lib/mongo/semaphore.rb,
build/ruby-driver-v2.19/lib/mongo/auth/roles.rb,
build/ruby-driver-v2.19/lib/mongo/auth/scram.rb,
build/ruby-driver-v2.19/lib/mongo/bulk_write.rb,
build/ruby-driver-v2.19/lib/mongo/collection.rb,
build/ruby-driver-v2.19/lib/mongo/event/base.rb,
build/ruby-driver-v2.19/lib/mongo/index/view.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring.rb,
build/ruby-driver-v2.19/lib/mongo/socket/ssl.rb,
build/ruby-driver-v2.19/lib/mongo/socket/tcp.rb,
build/ruby-driver-v2.19/lib/mongo/srv/result.rb,
build/ruby-driver-v2.19/lib/mongo/auth/gssapi.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/hooks.rb,
build/ruby-driver-v2.19/lib/mongo/grid/stream.rb,
build/ruby-driver-v2.19/lib/mongo/query_cache.rb,
build/ruby-driver-v2.19/lib/mongo/socket/unix.rb,
build/ruby-driver-v2.19/lib/mongo/srv/monitor.rb,
build/ruby-driver-v2.19/lib/mongo/address/ipv4.rb,
build/ruby-driver-v2.19/lib/mongo/address/ipv6.rb,
build/ruby-driver-v2.19/lib/mongo/address/unix.rb,
build/ruby-driver-v2.19/lib/mongo/cluster_time.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/binary.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/handle.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/status.rb,
build/ruby-driver-v2.19/lib/mongo/error/parser.rb,
build/ruby-driver-v2.19/lib/mongo/protocol/msg.rb,
build/ruby-driver-v2.19/lib/mongo/srv/resolver.rb,
build/ruby-driver-v2.19/lib/mongo/auth/scram256.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/binding.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/context.rb,
build/ruby-driver-v2.19/lib/mongo/database/view.rb,
build/ruby-driver-v2.19/lib/mongo/error/notable.rb,
build/ruby-driver-v2.19/lib/mongo/write_concern.rb,
build/ruby-driver-v2.19/lib/mongo/auth/user/view.rb,
build/ruby-driver-v2.19/lib/mongo/caching_cursor.rb,
build/ruby-driver-v2.19/lib/mongo/config/options.rb,
build/ruby-driver-v2.19/lib/mongo/grid/file/info.rb,
build/ruby-driver-v2.19/lib/mongo/grid/fs_bucket.rb,
build/ruby-driver-v2.19/lib/mongo/operation/drop.rb,
build/ruby-driver-v2.19/lib/mongo/operation/find.rb,
build/ruby-driver-v2.19/lib/mongo/options/mapper.rb,
build/ruby-driver-v2.19/lib/mongo/protocol/query.rb,
build/ruby-driver-v2.19/lib/mongo/protocol/reply.rb,
build/ruby-driver-v2.19/lib/mongo/server/monitor.rb,
build/ruby-driver-v2.19/lib/mongo/auth/stringprep.rb,
build/ruby-driver-v2.19/lib/mongo/collection/view.rb,
build/ruby-driver-v2.19/lib/mongo/error/kms_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/labelable.rb,
build/ruby-driver-v2.19/lib/mongo/event/listeners.rb,
build/ruby-driver-v2.19/lib/mongo/event/publisher.rb,
build/ruby-driver-v2.19/lib/mongo/grid/file/chunk.rb,
build/ruby-driver-v2.19/lib/mongo/operation/count.rb,
build/ruby-driver-v2.19/lib/mongo/server_selector.rb,
build/ruby-driver-v2.19/lib/mongo/auth/aws/request.rb,
build/ruby-driver-v2.19/lib/mongo/cluster/topology.rb,
build/ruby-driver-v2.19/lib/mongo/cluster/topology.rb,
build/ruby-driver-v2.19/lib/mongo/cursor/kill_spec.rb,
build/ruby-driver-v2.19/lib/mongo/error/auth_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/lint_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/pool_error.rb,
build/ruby-driver-v2.19/lib/mongo/event/subscriber.rb,
build/ruby-driver-v2.19/lib/mongo/grid/stream/read.rb,
build/ruby-driver-v2.19/lib/mongo/operation/create.rb,
build/ruby-driver-v2.19/lib/mongo/operation/delete.rb,
build/ruby-driver-v2.19/lib/mongo/operation/insert.rb,
build/ruby-driver-v2.19/lib/mongo/operation/result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/update.rb,
build/ruby-driver-v2.19/lib/mongo/options/redacted.rb,
build/ruby-driver-v2.19/lib/mongo/protocol/message.rb,
build/ruby-driver-v2.19/lib/mongo/topology_version.rb,
build/ruby-driver-v2.19/lib/mongo/uri/srv_protocol.rb,
build/ruby-driver-v2.19/lib/mongo/address/validator.rb,
build/ruby-driver-v2.19/lib/mongo/background_thread.rb,
build/ruby-driver-v2.19/lib/mongo/bulk_write/result.rb,
build/ruby-driver-v2.19/lib/mongo/client_encryption.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms_context.rb,
build/ruby-driver-v2.19/lib/mongo/error/crypt_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_uri.rb,
build/ruby-driver-v2.19/lib/mongo/grid/stream/write.rb,
build/ruby-driver-v2.19/lib/mongo/operation/command.rb,
build/ruby-driver-v2.19/lib/mongo/operation/context.rb,
build/ruby-driver-v2.19/lib/mongo/operation/explain.rb,
build/ruby-driver-v2.19/lib/mongo/operation/indexes.rb,
build/ruby-driver-v2.19/lib/mongo/protocol/get_more.rb,
build/ruby-driver-v2.19/lib/mongo/protocol/registry.rb,
build/ruby-driver-v2.19/lib/mongo/server/connection.rb,
build/ruby-driver-v2.19/lib/mongo/socket/ocsp_cache.rb,
build/ruby-driver-v2.19/lib/mongo/collection/helpers.rb,
build/ruby-driver-v2.19/lib/mongo/condition_variable.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_file.rb,
build/ruby-driver-v2.19/lib/mongo/error/socket_error.rb,
build/ruby-driver-v2.19/lib/mongo/operation/distinct.rb,
build/ruby-driver-v2.19/lib/mongo/operation/get_more.rb,
build/ruby-driver-v2.19/lib/mongo/server/description.rb,
build/ruby-driver-v2.19/lib/mongo/uri/options_mapper.rb,
build/ruby-driver-v2.19/lib/mongo/write_concern/base.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/encryption_io.rb,
build/ruby-driver-v2.19/lib/mongo/error/client_closed.rb,
build/ruby-driver-v2.19/lib/mongo/error/closed_stream.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_nonce.rb,
build/ruby-driver-v2.19/lib/mongo/error/max_bson_size.rb,
build/ruby-driver-v2.19/lib/mongo/error/session_ended.rb,
build/ruby-driver-v2.19/lib/mongo/operation/aggregate.rb,
build/ruby-driver-v2.19/lib/mongo/protocol/bit_vector.rb,
build/ruby-driver-v2.19/lib/mongo/protocol/compressed.rb,
build/ruby-driver-v2.19/lib/mongo/server/app_metadata.rb,
build/ruby-driver-v2.19/lib/mongo/server/push_monitor.rb,
build/ruby-driver-v2.19/lib/mongo/auth/aws/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/auth/cr/conversation.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/auto_encrypter.rb,
build/ruby-driver-v2.19/lib/mongo/error/file_not_found.rb,
build/ruby-driver-v2.19/lib/mongo/error/no_srv_records.rb,
build/ruby-driver-v2.19/lib/mongo/operation/drop_index.rb,
build/ruby-driver-v2.19/lib/mongo/operation/map_reduce.rb,
build/ruby-driver-v2.19/lib/mongo/operation/users_info.rb,
build/ruby-driver-v2.19/lib/mongo/protocol/serializers.rb,
build/ruby-driver-v2.19/lib/mongo/server_selector/base.rb,
build/ruby-driver-v2.19/lib/mongo/session/session_pool.rb,
build/ruby-driver-v2.19/lib/mongo/socket/ocsp_verifier.rb,
build/ruby-driver-v2.19/lib/mongo/auth/aws/conversation.rb,
build/ruby-driver-v2.19/lib/mongo/auth/credential_cache.rb,
build/ruby-driver-v2.19/lib/mongo/cluster/topology/base.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/error/handshake_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_address.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_session.rb,
build/ruby-driver-v2.19/lib/mongo/error/write_retryable.rb,
build/ruby-driver-v2.19/lib/mongo/operation/create_user.rb,
build/ruby-driver-v2.19/lib/mongo/operation/drop/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/find/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/find/result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/op_msg_base.rb,
build/ruby-driver-v2.19/lib/mongo/operation/remove_user.rb,
build/ruby-driver-v2.19/lib/mongo/operation/update_user.rb,
build/ruby-driver-v2.19/lib/mongo/protocol/caching_hash.rb,
build/ruby-driver-v2.19/lib/mongo/protocol/kill_cursors.rb,
build/ruby-driver-v2.19/lib/mongo/retryable/base_worker.rb,
build/ruby-driver-v2.19/lib/mongo/retryable/read_worker.rb,
build/ruby-driver-v2.19/lib/mongo/auth/conversation_base.rb,
build/ruby-driver-v2.19/lib/mongo/auth/ldap/conversation.rb,
build/ruby-driver-v2.19/lib/mongo/auth/stringprep/tables.rb,
build/ruby-driver-v2.19/lib/mongo/auth/x509/conversation.rb,
build/ruby-driver-v2.19/lib/mongo/bulk_write/combineable.rb,
build/ruby-driver-v2.19/lib/mongo/bulk_write/validatable.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/data_key_context.rb,
build/ruby-driver-v2.19/lib/mongo/error/bulk_write_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/extra_file_chunk.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_document.rb,
build/ruby-driver-v2.19/lib/mongo/error/max_message_size.rb,
build/ruby-driver-v2.19/lib/mongo/error/missing_password.rb,
build/ruby-driver-v2.19/lib/mongo/error/multi_index_drop.rb,
build/ruby-driver-v2.19/lib/mongo/error/unmet_dependency.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/publishable.rb,
build/ruby-driver-v2.19/lib/mongo/operation/count/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/create_index.rb,
build/ruby-driver-v2.19/lib/mongo/operation/kill_cursors.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/write.rb,
build/ruby-driver-v2.19/lib/mongo/retryable/write_worker.rb,
build/ruby-driver-v2.19/lib/mongo/server/connection_base.rb,
build/ruby-driver-v2.19/lib/mongo/server/connection_pool.rb,
build/ruby-driver-v2.19/lib/mongo/session/server_session.rb,
build/ruby-driver-v2.19/lib/mongo/auth/scram/conversation.rb,
build/ruby-driver-v2.19/lib/mongo/cluster/topology/single.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_signature.rb,
build/ruby-driver-v2.19/lib/mongo/error/mismatched_domain.rb,
build/ruby-driver-v2.19/lib/mongo/error/operation_failure.rb,
build/ruby-driver-v2.19/lib/mongo/error/pool_closed_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/pool_paused_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/server_not_usable.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/secure.rb,
build/ruby-driver-v2.19/lib/mongo/operation/create/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/delete/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/delete/result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/drop_database.rb,
build/ruby-driver-v2.19/lib/mongo/operation/insert/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/insert/result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/parallel_scan.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/idable.rb,
build/ruby-driver-v2.19/lib/mongo/operation/update/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/update/result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/write_command.rb,
build/ruby-driver-v2.19/lib/mongo/server_selector/nearest.rb,
build/ruby-driver-v2.19/lib/mongo/server_selector/primary.rb,
build/ruby-driver-v2.19/lib/mongo/auth/gssapi/conversation.rb,
build/ruby-driver-v2.19/lib/mongo/bulk_write/transformable.rb,
build/ruby-driver-v2.19/lib/mongo/cluster/topology/sharded.rb,
build/ruby-driver-v2.19/lib/mongo/cluster/topology/unknown.rb,
build/ruby-driver-v2.19/lib/mongo/collection/view/iterable.rb,
build/ruby-driver-v2.19/lib/mongo/collection/view/readable.rb,
build/ruby-driver-v2.19/lib/mongo/collection/view/writable.rb,
build/ruby-driver-v2.19/lib/mongo/config/validators/option.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/explicit_encrypter.rb,
build/ruby-driver-v2.19/lib/mongo/distinguishing_semaphore.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_txt_record.rb,
build/ruby-driver-v2.19/lib/mongo/error/missing_connection.rb,
build/ruby-driver-v2.19/lib/mongo/error/missing_file_chunk.rb,
build/ruby-driver-v2.19/lib/mongo/error/missing_service_id.rb,
build/ruby-driver-v2.19/lib/mongo/error/pool_cleared_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/unsupported_option.rb,
build/ruby-driver-v2.19/lib/mongo/operation/command/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/explain/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/explain/result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/indexes/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/indexes/result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/limited.rb,
build/ruby-driver-v2.19/lib/mongo/server/connection_common.rb,
build/ruby-driver-v2.19/lib/mongo/cluster/periodic_executor.rb,
build/ruby-driver-v2.19/lib/mongo/collection/view/immutable.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/aws/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/gcp/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/error/connection_perished.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_read_option.rb,
build/ruby-driver-v2.19/lib/mongo/error/need_primary_server.rb,
build/ruby-driver-v2.19/lib/mongo/error/no_server_available.rb,
build/ruby-driver-v2.19/lib/mongo/error/server_api_conflict.rb,
build/ruby-driver-v2.19/lib/mongo/error/unexpected_response.rb,
build/ruby-driver-v2.19/lib/mongo/operation/distinct/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/get_more/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/get_more/result.rb,
build/ruby-driver-v2.19/lib/mongo/server/monitor/connection.rb,
build/ruby-driver-v2.19/lib/mongo/server/pending_connection.rb,
build/ruby-driver-v2.19/lib/mongo/server_selector/secondary.rb,
build/ruby-driver-v2.19/lib/mongo/auth/aws/credentials_cache.rb,
build/ruby-driver-v2.19/lib/mongo/auth/scram256/conversation.rb,
build/ruby-driver-v2.19/lib/mongo/bulk_write/result_combiner.rb,
build/ruby-driver-v2.19/lib/mongo/collection/view/map_reduce.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/kmip/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_read_concern.rb,
build/ruby-driver-v2.19/lib/mongo/error/missing_resume_token.rb,
build/ruby-driver-v2.19/lib/mongo/error/raise_original_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/read_write_retryable.rb,
build/ruby-driver-v2.19/lib/mongo/error/sdam_error_detection.rb,
build/ruby-driver-v2.19/lib/mongo/error/socket_timeout_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/unknown_payload_type.rb,
build/ruby-driver-v2.19/lib/mongo/error/unsupported_features.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/cmap/base.rb,
build/ruby-driver-v2.19/lib/mongo/operation/aggregate/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/aggregate/result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/collections_info.rb,
build/ruby-driver-v2.19/lib/mongo/operation/list_collections.rb,
build/ruby-driver-v2.19/lib/mongo/write_concern/acknowledged.rb,
build/ruby-driver-v2.19/lib/mongo/auth/sasl_conversation_base.rb,
build/ruby-driver-v2.19/lib/mongo/bulk_write/ordered_combiner.rb,
build/ruby-driver-v2.19/lib/mongo/collection/view/aggregation.rb,
build/ruby-driver-v2.19/lib/mongo/collection/view/explainable.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/azure/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/local/credentials.rb,
build/ruby-driver-v2.19/lib/mongo/error/internal_driver_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_config_option.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_database_name.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_file_revision.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_min_pool_size.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_write_concern.rb,
build/ruby-driver-v2.19/lib/mongo/error/unsupported_collation.rb,
build/ruby-driver-v2.19/lib/mongo/operation/drop_index/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/map_reduce/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/map_reduce/result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/executable.rb,
build/ruby-driver-v2.19/lib/mongo/operation/users_info/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/users_info/result.rb,
build/ruby-driver-v2.19/lib/mongo/server/description/features.rb,
build/ruby-driver-v2.19/lib/mongo/server/monitor/app_metadata.rb,
build/ruby-driver-v2.19/lib/mongo/auth/scram_conversation_base.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/azure/access_token.rb,
build/ruby-driver-v2.19/lib/mongo/error/connection_unavailable.rb,
build/ruby-driver-v2.19/lib/mongo/error/credential_check_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_bulk_operation.rb,
build/ruby-driver-v2.19/lib/mongo/error/sessions_not_supported.rb,
build/ruby-driver-v2.19/lib/mongo/operation/create_user/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/delete/bulk_result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/find/builder/flags.rb,
build/ruby-driver-v2.19/lib/mongo/operation/insert/bulk_result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/remove_user/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/specifiable.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/validatable.rb,
build/ruby-driver-v2.19/lib/mongo/operation/update/bulk_result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/update_user/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/server/app_metadata/platform.rb,
build/ruby-driver-v2.19/lib/mongo/write_concern/unacknowledged.rb,
build/ruby-driver-v2.19/lib/mongo/auth/stringprep/profiles/sasl.rb,
build/ruby-driver-v2.19/lib/mongo/bulk_write/unordered_combiner.rb,
build/ruby-driver-v2.19/lib/mongo/cluster/reapers/cursor_reaper.rb,
build/ruby-driver-v2.19/lib/mongo/cluster/reapers/socket_reaper.rb,
build/ruby-driver-v2.19/lib/mongo/collection/view/change_stream.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/auto_decryption_context.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/auto_encryption_context.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/aws/master_document.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/gcp/master_document.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/master_key_document.rb,
build/ruby-driver-v2.19/lib/mongo/error/change_stream_resumable.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_collection_name.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_update_document.rb,
build/ruby-driver-v2.19/lib/mongo/error/mongocryptd_spawn_error.rb,
build/ruby-driver-v2.19/lib/mongo/error/unexpected_chunk_length.rb,
build/ruby-driver-v2.19/lib/mongo/operation/create_index/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/kill_cursors/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/server/app_metadata/truncator.rb,
build/ruby-driver-v2.19/lib/mongo/auth/aws/credentials_retriever.rb,
build/ruby-driver-v2.19/lib/mongo/cluster/topology/load_balanced.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/kmip/master_document.rb,
build/ruby-driver-v2.19/lib/mongo/error/bad_load_balancer_target.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_application_name.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_cursor_operation.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_server_auth_host.rb,
build/ruby-driver-v2.19/lib/mongo/error/server_api_not_supported.rb,
build/ruby-driver-v2.19/lib/mongo/error/session_not_materialized.rb,
build/ruby-driver-v2.19/lib/mongo/error/unsupported_message_type.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/cmap_log_subscriber.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/server_closed.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/sdam_log_subscriber.rb,
build/ruby-driver-v2.19/lib/mongo/operation/drop_database/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/find/builder/command.rb,
build/ruby-driver-v2.19/lib/mongo/operation/parallel_scan/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/parallel_scan/result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/write_command/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/server/push_monitor/connection.rb,
build/ruby-driver-v2.19/lib/mongo/collection/queryable_encryption.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/azure/master_document.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/local/master_document.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_server_preference.rb,
build/ruby-driver-v2.19/lib/mongo/error/unsupported_array_filters.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/command_failed.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/server_opening.rb,
build/ruby-driver-v2.19/lib/mongo/server/app_metadata/environment.rb,
build/ruby-driver-v2.19/lib/mongo/server/round_trip_time_averager.rb,
build/ruby-driver-v2.19/lib/mongo/error/server_certificate_revoked.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/cmap/pool_ready.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/command_started.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/topology_closed.rb,
build/ruby-driver-v2.19/lib/mongo/operation/find/builder/modifiers.rb,
build/ruby-driver-v2.19/lib/mongo/server/connection_pool/populator.rb,
build/ruby-driver-v2.19/lib/mongo/server/description/load_balancer.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/explicit_decryption_context.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/explicit_encryption_context.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/rewrap_many_data_key_result.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_bulk_operation_type.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/command_log_subscriber.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/cmap/pool_closed.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/topology_changed.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/topology_opening.rb,
build/ruby-driver-v2.19/lib/mongo/operation/collections_info/result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/list_collections/op_msg.rb,
build/ruby-driver-v2.19/lib/mongo/operation/list_collections/result.rb,
build/ruby-driver-v2.19/lib/mongo/server_selector/primary_preferred.rb,
build/ruby-driver-v2.19/lib/mongo/collection/view/builder/map_reduce.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/rewrap_many_data_key_context.rb,
build/ruby-driver-v2.19/lib/mongo/error/connection_check_out_timeout.rb,
build/ruby-driver-v2.19/lib/mongo/error/insufficient_iteration_count.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_replacement_document.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_server_auth_response.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/cmap/pool_cleared.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/cmap/pool_created.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/command_succeeded.rb,
build/ruby-driver-v2.19/lib/mongo/operation/get_more/command_builder.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/op_msg_executable.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/response_handling.rb,
build/ruby-driver-v2.19/lib/mongo/collection/view/builder/aggregation.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/gcp/credentials_retriever.rb,
build/ruby-driver-v2.19/lib/mongo/error/failed_string_prep_validation.rb,
build/ruby-driver-v2.19/lib/mongo/error/invalid_transaction_operation.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/polymorphic_lookup.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/polymorphic_result.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/sessions_supported.rb,
build/ruby-driver-v2.19/lib/mongo/server_selector/secondary_preferred.rb,
build/ruby-driver-v2.19/lib/mongo/error/missing_scram_server_signature.rb,
build/ruby-driver-v2.19/lib/mongo/error/unchangeable_collection_option.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/object_id_generator.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/result/aggregatable.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/kms/azure/credentials_retriever.rb,
build/ruby-driver-v2.19/lib/mongo/error/no_service_connection_available.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/cmap/connection_ready.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/unified_sdam_log_subscriber.rb,
build/ruby-driver-v2.19/lib/mongo/operation/kill_cursors/command_builder.rb,
build/ruby-driver-v2.19/lib/mongo/cluster/topology/no_replica_set_options.rb,
build/ruby-driver-v2.19/lib/mongo/cluster/topology/replica_set_no_primary.rb,
build/ruby-driver-v2.19/lib/mongo/collection/view/change_stream/retryable.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/cmap/connection_closed.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/server_closed_log_subscriber.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/executable_no_validate.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/cmap/connection_created.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/server_heartbeat_failed.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/server_opening_log_subscriber.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/write_concern_supported.rb,
build/ruby-driver-v2.19/lib/mongo/cluster/topology/replica_set_with_primary.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/server_heartbeat_started.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/topology_closed_log_subscriber.rb,
build/ruby-driver-v2.19/lib/mongo/server/connection_pool/generation_manager.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/topology_changed_log_subscriber.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/topology_opening_log_subscriber.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/read_preference_supported.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/cmap/connection_checked_in.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/server_description_changed.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/server_heartbeat_succeeded.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/bypass_document_validation.rb,
build/ruby-driver-v2.19/lib/mongo/crypt/explicit_encryption_expression_context.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/cmap/connection_checked_out.rb,
build/ruby-driver-v2.19/lib/mongo/error/snapshot_session_invalid_server_version.rb,
build/ruby-driver-v2.19/lib/mongo/error/snapshot_session_transaction_prohibited.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/causal_consistency_supported.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/executable_transaction_label.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/result/use_legacy_error_parser.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/cmap/connection_check_out_failed.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/event/cmap/connection_check_out_started.rb,
build/ruby-driver-v2.19/lib/mongo/monitoring/server_description_changed_log_subscriber.rb

Overview

Copyright © 2016-2020 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.

Defined Under Namespace

Modules: Auth, BackgroundThread, Config, Crypt, Event, Grid, Id, Index, Lint, Loggable, Operation, Options, Protocol, QueryCache, Retryable, ServerSelector, Srv, Timeout, Utils, WriteConcern Classes: Address, BulkWrite, CachingCursor, Client, ClientEncryption, Cluster, ClusterTime, Collection, ConditionVariable, Cursor, Database, DistinguishingSemaphore, Error, Logger, Monitoring, Semaphore, Server, Session, Socket, TopologyVersion, URI

Constant Summary collapse

DBRef =
BSON::DBRef
VERSION =

The current version of the driver.

Since:

  • 2.0.0

'2.19.0'.freeze

Class Method Summary collapse

Class Method Details

.clear_ocsp_cacheObject

Clears the driver’s OCSP response cache.



104
105
106
# File 'build/ruby-driver-v2.19/lib/mongo.rb', line 104

module_function def clear_ocsp_cache
  Socket::OcspCache.clear
end

.delegate_option(obj, opt) ⇒ Object

Delegate the given option along with its = and ? methods to the given object.

Parameters:

  • obj (Object)

    The object to delegate to.

  • opt (Symbol)

    The method to delegate.



91
92
93
# File 'build/ruby-driver-v2.19/lib/mongo.rb', line 91

def self.delegate_option(obj, opt)
  def_delegators obj, opt, "#{opt}=", "#{opt}?"
end

.tls_context_hooksArray<Proc>

This is a user-settable list of hooks that will be invoked when any new TLS socket is connected. Each hook should be a Proc that takes an OpenSSL::SSL::SSLContext object as an argument. These hooks can be used to modify the TLS context (for example to disallow certain ciphers).

Returns:

  • (Array<Proc>)

    The list of procs to be invoked when a TLS socket is connected (may be an empty Array).



115
116
117
# File 'build/ruby-driver-v2.19/lib/mongo.rb', line 115

module_function def tls_context_hooks
  @tls_context_hooks ||= []
end

.tls_context_hooks=(hooks) ⇒ Object

Set the TLS context hooks.

Parameters:

  • hooks (Array<Proc>)

    An Array of Procs, each of which should take an OpenSSL::SSL::SSLContext object as an argument.



123
124
125
126
127
128
129
# File 'build/ruby-driver-v2.19/lib/mongo.rb', line 123

module_function def tls_context_hooks=(hooks)
  unless hooks.is_a?(Array) && hooks.all? { |hook| hook.is_a?(Proc) }
    raise ArgumentError, "TLS context hooks must be an array of Procs"
  end

  @tls_context_hooks = hooks
end