Module: Mongo

Defined in:
lib/mongo/dbref.rb,
lib/mongo/uri.rb,
lib/mongo/auth.rb,
lib/mongo/lint.rb,
lib/mongo/error.rb,
lib/mongo/event.rb,
lib/mongo/index.rb,
lib/mongo/client.rb,
lib/mongo/cursor.rb,
lib/mongo/logger.rb,
lib/mongo/server.rb,
lib/mongo/socket.rb,
lib/mongo/address.rb,
lib/mongo/auth/cr.rb,
lib/mongo/cluster.rb,
lib/mongo/session.rb,
lib/mongo/version.rb,
lib/mongo/database.rb,
lib/mongo/loggable.rb,
lib/mongo/auth/ldap.rb,
lib/mongo/auth/user.rb,
lib/mongo/auth/x509.rb,
lib/mongo/grid/file.rb,
lib/mongo/operation.rb,
lib/mongo/retryable.rb,
lib/mongo/auth/roles.rb,
lib/mongo/auth/scram.rb,
lib/mongo/bulk_write.rb,
lib/mongo/collection.rb,
lib/mongo/event/base.rb,
lib/mongo/index/view.rb,
lib/mongo/monitoring.rb,
lib/mongo/socket/ssl.rb,
lib/mongo/socket/tcp.rb,
lib/mongo/grid/stream.rb,
lib/mongo/socket/unix.rb,
lib/mongo/address/ipv4.rb,
lib/mongo/address/ipv6.rb,
lib/mongo/address/unix.rb,
lib/mongo/error/parser.rb,
lib/mongo/protocol/msg.rb,
lib/mongo/database/view.rb,
lib/mongo/write_concern.rb,
lib/mongo/auth/user/view.rb,
lib/mongo/grid/file/info.rb,
lib/mongo/grid/fs_bucket.rb,
lib/mongo/operation/drop.rb,
lib/mongo/operation/find.rb,
lib/mongo/options/mapper.rb,
lib/mongo/protocol/query.rb,
lib/mongo/protocol/reply.rb,
lib/mongo/server/context.rb,
lib/mongo/server/monitor.rb,
lib/mongo/auth/stringprep.rb,
lib/mongo/collection/view.rb,
lib/mongo/event/listeners.rb,
lib/mongo/event/publisher.rb,
lib/mongo/grid/file/chunk.rb,
lib/mongo/operation/count.rb,
lib/mongo/protocol/delete.rb,
lib/mongo/protocol/insert.rb,
lib/mongo/protocol/update.rb,
lib/mongo/server_selector.rb,
lib/mongo/cluster/topology.rb,
lib/mongo/error/lint_error.rb,
lib/mongo/event/subscriber.rb,
lib/mongo/grid/stream/read.rb,
lib/mongo/operation/create.rb,
lib/mongo/operation/delete.rb,
lib/mongo/operation/insert.rb,
lib/mongo/operation/result.rb,
lib/mongo/operation/update.rb,
lib/mongo/options/redacted.rb,
lib/mongo/protocol/message.rb,
lib/mongo/uri/srv_protocol.rb,
lib/mongo/bulk_write/result.rb,
lib/mongo/error/invalid_uri.rb,
lib/mongo/grid/stream/write.rb,
lib/mongo/operation/command.rb,
lib/mongo/operation/explain.rb,
lib/mongo/operation/indexes.rb,
lib/mongo/protocol/get_more.rb,
lib/mongo/protocol/registry.rb,
lib/mongo/server/connection.rb,
lib/mongo/error/invalid_file.rb,
lib/mongo/error/socket_error.rb,
lib/mongo/operation/distinct.rb,
lib/mongo/operation/get_more.rb,
lib/mongo/server/connectable.rb,
lib/mongo/server/description.rb,
lib/mongo/error/closed_stream.rb,
lib/mongo/error/invalid_nonce.rb,
lib/mongo/error/max_bson_size.rb,
lib/mongo/operation/aggregate.rb,
lib/mongo/protocol/bit_vector.rb,
lib/mongo/protocol/compressed.rb,
lib/mongo/auth/cr/conversation.rb,
lib/mongo/cluster/app_metadata.rb,
lib/mongo/error/file_not_found.rb,
lib/mongo/error/no_srv_records.rb,
lib/mongo/operation/drop_index.rb,
lib/mongo/operation/map_reduce.rb,
lib/mongo/operation/users_info.rb,
lib/mongo/protocol/serializers.rb,
lib/mongo/session/session_pool.rb,
lib/mongo/error/invalid_session.rb,
lib/mongo/error/write_retryable.rb,
lib/mongo/event/primary_elected.rb,
lib/mongo/operation/create_user.rb,
lib/mongo/operation/drop/op_msg.rb,
lib/mongo/operation/find/legacy.rb,
lib/mongo/operation/find/op_msg.rb,
lib/mongo/operation/find/result.rb,
lib/mongo/operation/remove_user.rb,
lib/mongo/operation/update_user.rb,
lib/mongo/protocol/kill_cursors.rb,
lib/mongo/auth/ldap/conversation.rb,
lib/mongo/auth/stringprep/tables.rb,
lib/mongo/auth/x509/conversation.rb,
lib/mongo/bulk_write/combineable.rb,
lib/mongo/bulk_write/validatable.rb,
lib/mongo/error/bulk_write_error.rb,
lib/mongo/error/extra_file_chunk.rb,
lib/mongo/error/invalid_document.rb,
lib/mongo/error/max_message_size.rb,
lib/mongo/error/multi_index_drop.rb,
lib/mongo/monitoring/publishable.rb,
lib/mongo/operation/count/op_msg.rb,
lib/mongo/operation/create_index.rb,
lib/mongo/operation/drop/command.rb,
lib/mongo/operation/find/command.rb,
lib/mongo/operation/kill_cursors.rb,
lib/mongo/operation/shared/write.rb,
lib/mongo/server/connection_pool.rb,
lib/mongo/session/server_session.rb,
lib/mongo/auth/scram/conversation.rb,
lib/mongo/cluster/topology/single.rb,
lib/mongo/error/invalid_signature.rb,
lib/mongo/error/mismatched_domain.rb,
lib/mongo/error/operation_failure.rb,
lib/mongo/event/member_discovered.rb,
lib/mongo/monitoring/event/secure.rb,
lib/mongo/operation/count/command.rb,
lib/mongo/operation/create/op_msg.rb,
lib/mongo/operation/delete/legacy.rb,
lib/mongo/operation/delete/op_msg.rb,
lib/mongo/operation/delete/result.rb,
lib/mongo/operation/drop_database.rb,
lib/mongo/operation/insert/legacy.rb,
lib/mongo/operation/insert/op_msg.rb,
lib/mongo/operation/insert/result.rb,
lib/mongo/operation/parallel_scan.rb,
lib/mongo/operation/shared/idable.rb,
lib/mongo/operation/update/legacy.rb,
lib/mongo/operation/update/op_msg.rb,
lib/mongo/operation/update/result.rb,
lib/mongo/server_selector/nearest.rb,
lib/mongo/server_selector/primary.rb,
lib/mongo/bulk_write/transformable.rb,
lib/mongo/cluster/topology/sharded.rb,
lib/mongo/cluster/topology/unknown.rb,
lib/mongo/collection/view/iterable.rb,
lib/mongo/collection/view/readable.rb,
lib/mongo/collection/view/writable.rb,
lib/mongo/error/invalid_txt_record.rb,
lib/mongo/error/missing_file_chunk.rb,
lib/mongo/operation/command/op_msg.rb,
lib/mongo/operation/create/command.rb,
lib/mongo/operation/delete/command.rb,
lib/mongo/operation/explain/legacy.rb,
lib/mongo/operation/explain/op_msg.rb,
lib/mongo/operation/explain/result.rb,
lib/mongo/operation/indexes/legacy.rb,
lib/mongo/operation/indexes/op_msg.rb,
lib/mongo/operation/indexes/result.rb,
lib/mongo/operation/insert/command.rb,
lib/mongo/operation/shared/limited.rb,
lib/mongo/operation/update/command.rb,
lib/mongo/cluster/periodic_executor.rb,
lib/mongo/collection/view/immutable.rb,
lib/mongo/error/invalid_read_option.rb,
lib/mongo/error/need_primary_server.rb,
lib/mongo/error/no_server_available.rb,
lib/mongo/error/unexpected_response.rb,
lib/mongo/event/description_changed.rb,
lib/mongo/operation/command/command.rb,
lib/mongo/operation/distinct/op_msg.rb,
lib/mongo/operation/explain/command.rb,
lib/mongo/operation/get_more/legacy.rb,
lib/mongo/operation/get_more/op_msg.rb,
lib/mongo/operation/get_more/result.rb,
lib/mongo/operation/indexes/command.rb,
lib/mongo/server/monitor/connection.rb,
lib/mongo/server_selector/secondary.rb,
lib/mongo/bulk_write/result_combiner.rb,
lib/mongo/collection/view/map_reduce.rb,
lib/mongo/cursor/builder/op_get_more.rb,
lib/mongo/error/missing_resume_token.rb,
lib/mongo/error/socket_timeout_error.rb,
lib/mongo/error/unknown_payload_type.rb,
lib/mongo/error/unsupported_features.rb,
lib/mongo/operation/aggregate/op_msg.rb,
lib/mongo/operation/aggregate/result.rb,
lib/mongo/operation/collections_info.rb,
lib/mongo/operation/distinct/command.rb,
lib/mongo/operation/get_more/command.rb,
lib/mongo/operation/list_collections.rb,
lib/mongo/server_selector/selectable.rb,
lib/mongo/write_concern/acknowledged.rb,
lib/mongo/write_concern/normalizable.rb,
lib/mongo/bulk_write/ordered_combiner.rb,
lib/mongo/collection/view/aggregation.rb,
lib/mongo/collection/view/explainable.rb,
lib/mongo/error/invalid_database_name.rb,
lib/mongo/error/invalid_file_revision.rb,
lib/mongo/error/invalid_min_pool_size.rb,
lib/mongo/error/invalid_write_concern.rb,
lib/mongo/error/unsupported_collation.rb,
lib/mongo/event/standalone_discovered.rb,
lib/mongo/operation/aggregate/command.rb,
lib/mongo/operation/drop_index/op_msg.rb,
lib/mongo/operation/map_reduce/op_msg.rb,
lib/mongo/operation/map_reduce/result.rb,
lib/mongo/operation/shared/executable.rb,
lib/mongo/operation/users_info/op_msg.rb,
lib/mongo/operation/users_info/result.rb,
lib/mongo/server/description/features.rb,
lib/mongo/cluster/topology/replica_set.rb,
lib/mongo/error/invalid_bulk_operation.rb,
lib/mongo/operation/create_user/op_msg.rb,
lib/mongo/operation/delete/bulk_result.rb,
lib/mongo/operation/drop_index/command.rb,
lib/mongo/operation/find/legacy/result.rb,
lib/mongo/operation/insert/bulk_result.rb,
lib/mongo/operation/map_reduce/command.rb,
lib/mongo/operation/remove_user/op_msg.rb,
lib/mongo/operation/shared/specifiable.rb,
lib/mongo/operation/update/bulk_result.rb,
lib/mongo/operation/update_user/op_msg.rb,
lib/mongo/operation/users_info/command.rb,
lib/mongo/server/connection_pool/queue.rb,
lib/mongo/server/description/inspector.rb,
lib/mongo/write_concern/unacknowledged.rb,
lib/mongo/auth/stringprep/profiles/sasl.rb,
lib/mongo/bulk_write/unordered_combiner.rb,
lib/mongo/cluster/reapers/cursor_reaper.rb,
lib/mongo/cluster/reapers/socket_reaper.rb,
lib/mongo/collection/view/builder/flags.rb,
lib/mongo/collection/view/change_stream.rb,
lib/mongo/error/change_stream_resumable.rb,
lib/mongo/error/invalid_collection_name.rb,
lib/mongo/error/invalid_update_document.rb,
lib/mongo/error/unexpected_chunk_length.rb,
lib/mongo/operation/create_index/op_msg.rb,
lib/mongo/operation/create_user/command.rb,
lib/mongo/operation/kill_cursors/legacy.rb,
lib/mongo/operation/kill_cursors/op_msg.rb,
lib/mongo/operation/remove_user/command.rb,
lib/mongo/operation/update_user/command.rb,
lib/mongo/cursor/builder/op_kill_cursors.rb,
lib/mongo/error/invalid_application_name.rb,
lib/mongo/error/unsupported_message_type.rb,
lib/mongo/monitoring/event/server_closed.rb,
lib/mongo/monitoring/sdam_log_subscriber.rb,
lib/mongo/operation/create_index/command.rb,
lib/mongo/operation/drop_database/op_msg.rb,
lib/mongo/operation/kill_cursors/command.rb,
lib/mongo/operation/parallel_scan/op_msg.rb,
lib/mongo/operation/parallel_scan/result.rb,
lib/mongo/operation/update/legacy/result.rb,
lib/mongo/cursor/builder/get_more_command.rb,
lib/mongo/error/invalid_server_preference.rb,
lib/mongo/error/unsupported_array_filters.rb,
lib/mongo/monitoring/event/command_failed.rb,
lib/mongo/monitoring/event/server_opening.rb,
lib/mongo/operation/drop_database/command.rb,
lib/mongo/operation/parallel_scan/command.rb,
lib/mongo/collection/view/builder/op_query.rb,
lib/mongo/monitoring/event/command_started.rb,
lib/mongo/monitoring/event/topology_closed.rb,
lib/mongo/collection/view/builder/modifiers.rb,
lib/mongo/error/invalid_bulk_operation_type.rb,
lib/mongo/monitoring/command_log_subscriber.rb,
lib/mongo/monitoring/event/topology_changed.rb,
lib/mongo/monitoring/event/topology_opening.rb,
lib/mongo/operation/collections_info/result.rb,
lib/mongo/operation/list_collections/op_msg.rb,
lib/mongo/operation/list_collections/result.rb,
lib/mongo/server_selector/primary_preferred.rb,
lib/mongo/collection/view/builder/map_reduce.rb,
lib/mongo/error/failed_stringprep_validation.rb,
lib/mongo/error/insufficient_iteration_count.rb,
lib/mongo/error/invalid_replacement_document.rb,
lib/mongo/monitoring/event/command_succeeded.rb,
lib/mongo/operation/list_collections/command.rb,
lib/mongo/collection/view/builder/aggregation.rb,
lib/mongo/cursor/builder/kill_cursors_command.rb,
lib/mongo/error/invalid_transaction_operation.rb,
lib/mongo/operation/shared/sessions_supported.rb,
lib/mongo/server_selector/secondary_preferred.rb,
lib/mongo/collection/view/builder/find_command.rb,
lib/mongo/error/unchangeable_collection_option.rb,
lib/mongo/operation/shared/object_id_generator.rb,
lib/mongo/operation/shared/result/aggregatable.rb,
lib/mongo/collection/view/change_stream/retryable.rb,
lib/mongo/monitoring/server_closed_log_subscriber.rb,
lib/mongo/monitoring/server_opening_log_subscriber.rb,
lib/mongo/operation/shared/write_concern_supported.rb,
lib/mongo/monitoring/topology_changed_log_subscriber.rb,
lib/mongo/monitoring/topology_opening_log_subscriber.rb,
lib/mongo/operation/shared/read_preference_supported.rb,
lib/mongo/monitoring/event/server_description_changed.rb,
lib/mongo/operation/shared/bypass_document_validation.rb,
lib/mongo/server/description/inspector/primary_elected.rb,
lib/mongo/operation/shared/causal_consistency_supported.rb,
lib/mongo/server/description/inspector/member_discovered.rb,
lib/mongo/server/description/inspector/description_changed.rb,
lib/mongo/server/description/inspector/standalone_discovered.rb,
lib/mongo/monitoring/server_description_changed_log_subscriber.rb

Overview

Copyright (C) 2016-2018 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, Event, Grid, Index, Lint, Loggable, Operation, Options, Protocol, Retryable, ServerSelector, WriteConcern Classes: Address, BulkWrite, Client, Cluster, Collection, Cursor, DBRef, Database, Error, Logger, Monitoring, Server, Session, Socket, URI

Constant Summary collapse

VERSION =

The current version of the driver.

Since:

  • 2.0.0

'2.6.2'.freeze