Module: Mongo

Defined in:
lib/mongo/dbref.rb,
lib/mongo/uri.rb,
lib/mongo/auth.rb,
lib/mongo/event.rb,
lib/mongo/index.rb,
lib/mongo/error.rb,
lib/mongo/socket.rb,
lib/mongo/client.rb,
lib/mongo/server.rb,
lib/mongo/logger.rb,
lib/mongo/cursor.rb,
lib/mongo/auth/cr.rb,
lib/mongo/address.rb,
lib/mongo/cluster.rb,
lib/mongo/version.rb,
lib/mongo/database.rb,
lib/mongo/loggable.rb,
lib/mongo/auth/ldap.rb,
lib/mongo/auth/x509.rb,
lib/mongo/grid/file.rb,
lib/mongo/auth/user.rb,
lib/mongo/operation.rb,
lib/mongo/retryable.rb,
lib/mongo/auth/scram.rb,
lib/mongo/monitoring.rb,
lib/mongo/index/view.rb,
lib/mongo/socket/tcp.rb,
lib/mongo/auth/roles.rb,
lib/mongo/socket/ssl.rb,
lib/mongo/bulk_write.rb,
lib/mongo/collection.rb,
lib/mongo/grid/stream.rb,
lib/mongo/socket/unix.rb,
lib/mongo/address/ipv6.rb,
lib/mongo/error/parser.rb,
lib/mongo/address/unix.rb,
lib/mongo/address/ipv4.rb,
lib/mongo/database/view.rb,
lib/mongo/write_concern.rb,
lib/mongo/grid/fs_bucket.rb,
lib/mongo/server/monitor.rb,
lib/mongo/grid/file/info.rb,
lib/mongo/auth/user/view.rb,
lib/mongo/server/context.rb,
lib/mongo/options/mapper.rb,
lib/mongo/protocol/query.rb,
lib/mongo/protocol/reply.rb,
lib/mongo/event/listeners.rb,
lib/mongo/event/publisher.rb,
lib/mongo/protocol/insert.rb,
lib/mongo/protocol/update.rb,
lib/mongo/collection/view.rb,
lib/mongo/server_selector.rb,
lib/mongo/grid/file/chunk.rb,
lib/mongo/protocol/delete.rb,
lib/mongo/options/redacted.rb,
lib/mongo/grid/stream/read.rb,
lib/mongo/event/subscriber.rb,
lib/mongo/cluster/topology.rb,
lib/mongo/protocol/message.rb,
lib/mongo/operation/result.rb,
lib/mongo/protocol/get_more.rb,
lib/mongo/server/connection.rb,
lib/mongo/bulk_write/result.rb,
lib/mongo/operation/limited.rb,
lib/mongo/grid/stream/write.rb,
lib/mongo/error/invalid_uri.rb,
lib/mongo/server/connectable.rb,
lib/mongo/error/socket_error.rb,
lib/mongo/error/invalid_file.rb,
lib/mongo/server/description.rb,
lib/mongo/error/invalid_nonce.rb,
lib/mongo/error/max_bson_size.rb,
lib/mongo/operation/write/gle.rb,
lib/mongo/protocol/bit_vector.rb,
lib/mongo/error/closed_stream.rb,
lib/mongo/operation/executable.rb,
lib/mongo/cluster/app_metadata.rb,
lib/mongo/operation/read/query.rb,
lib/mongo/error/file_not_found.rb,
lib/mongo/protocol/serializers.rb,
lib/mongo/auth/cr/conversation.rb,
lib/mongo/protocol/kill_cursors.rb,
lib/mongo/operation/specifiable.rb,
lib/mongo/cluster/cursor_reaper.rb,
lib/mongo/event/primary_elected.rb,
lib/mongo/operation/write/delete.rb,
lib/mongo/error/invalid_document.rb,
lib/mongo/auth/ldap/conversation.rb,
lib/mongo/monitoring/publishable.rb,
lib/mongo/bulk_write/combineable.rb,
lib/mongo/error/max_message_size.rb,
lib/mongo/auth/x509/conversation.rb,
lib/mongo/error/multi_index_drop.rb,
lib/mongo/operation/write/insert.rb,
lib/mongo/error/extra_file_chunk.rb,
lib/mongo/bulk_write/validatable.rb,
lib/mongo/operation/kill_cursors.rb,
lib/mongo/error/bulk_write_error.rb,
lib/mongo/operation/write/idable.rb,
lib/mongo/server/connection_pool.rb,
lib/mongo/operation/write/update.rb,
lib/mongo/operation/commands/drop.rb,
lib/mongo/auth/scram/conversation.rb,
lib/mongo/cluster/topology/single.rb,
lib/mongo/error/invalid_signature.rb,
lib/mongo/error/operation_failure.rb,
lib/mongo/monitoring/event/secure.rb,
lib/mongo/server_selector/primary.rb,
lib/mongo/operation/read/get_more.rb,
lib/mongo/operation/commands/find.rb,
lib/mongo/event/member_discovered.rb,
lib/mongo/server_selector/nearest.rb,
lib/mongo/error/missing_file_chunk.rb,
lib/mongo/collection/view/iterable.rb,
lib/mongo/cluster/topology/unknown.rb,
lib/mongo/collection/view/readable.rb,
lib/mongo/bulk_write/transformable.rb,
lib/mongo/cluster/topology/sharded.rb,
lib/mongo/collection/view/writable.rb,
lib/mongo/error/unexpected_response.rb,
lib/mongo/server_selector/secondary.rb,
lib/mongo/error/need_primary_server.rb,
lib/mongo/error/no_server_available.rb,
lib/mongo/operation/read_preference.rb,
lib/mongo/collection/view/immutable.rb,
lib/mongo/event/description_changed.rb,
lib/mongo/operation/commands/create.rb,
lib/mongo/server/monitor/connection.rb,
lib/mongo/write_concern/acknowledged.rb,
lib/mongo/error/unsupported_features.rb,
lib/mongo/cursor/builder/op_get_more.rb,
lib/mongo/operation/commands/command.rb,
lib/mongo/bulk_write/result_combiner.rb,
lib/mongo/operation/commands/indexes.rb,
lib/mongo/collection/view/map_reduce.rb,
lib/mongo/write_concern/normalizable.rb,
lib/mongo/server_selector/selectable.rb,
lib/mongo/error/socket_timeout_error.rb,
lib/mongo/operation/write/drop_index.rb,
lib/mongo/server/description/features.rb,
lib/mongo/operation/write/create_user.rb,
lib/mongo/operation/commands/get_more.rb,
lib/mongo/error/invalid_write_concern.rb,
lib/mongo/operation/write/bulk/update.rb,
lib/mongo/operation/write/bulk/insert.rb,
lib/mongo/operation/write/update_user.rb,
lib/mongo/operation/write/remove_user.rb,
lib/mongo/bulk_write/ordered_combiner.rb,
lib/mongo/error/unsupported_collation.rb,
lib/mongo/operation/write/bulk/delete.rb,
lib/mongo/error/invalid_database_name.rb,
lib/mongo/operation/read/query/result.rb,
lib/mongo/error/invalid_min_pool_size.rb,
lib/mongo/event/standalone_discovered.rb,
lib/mongo/collection/view/aggregation.rb,
lib/mongo/error/invalid_file_revision.rb,
lib/mongo/collection/view/explainable.rb,
lib/mongo/write_concern/unacknowledged.rb,
lib/mongo/operation/commands/aggregate.rb,
lib/mongo/operation/write/create_index.rb,
lib/mongo/server/connection_pool/queue.rb,
lib/mongo/cluster/topology/replica_set.rb,
lib/mongo/server/description/inspector.rb,
lib/mongo/error/invalid_bulk_operation.rb,
lib/mongo/error/unexpected_chunk_length.rb,
lib/mongo/operation/write/insert/result.rb,
lib/mongo/error/invalid_collection_name.rb,
lib/mongo/operation/commands/user_query.rb,
lib/mongo/error/invalid_update_document.rb,
lib/mongo/collection/view/builder/flags.rb,
lib/mongo/bulk_write/unordered_combiner.rb,
lib/mongo/operation/write/bulk/mergable.rb,
lib/mongo/operation/write/bulk/bulkable.rb,
lib/mongo/operation/write/update/result.rb,
lib/mongo/operation/commands/map_reduce.rb,
lib/mongo/operation/takes_write_concern.rb,
lib/mongo/operation/write/delete/result.rb,
lib/mongo/operation/object_id_generator.rb,
lib/mongo/operation/commands/users_info.rb,
lib/mongo/monitoring/sdam_log_subscriber.rb,
lib/mongo/cursor/builder/op_kill_cursors.rb,
lib/mongo/operation/write/command/update.rb,
lib/mongo/operation/write/command/insert.rb,
lib/mongo/operation/write/command/delete.rb,
lib/mongo/operation/commands/find/result.rb,
lib/mongo/error/invalid_application_name.rb,
lib/mongo/monitoring/event/server_closed.rb,
lib/mongo/monitoring/event/command_failed.rb,
lib/mongo/error/invalid_server_preference.rb,
lib/mongo/monitoring/event/server_opening.rb,
lib/mongo/cursor/builder/get_more_command.rb,
lib/mongo/operation/commands/list_indexes.rb,
lib/mongo/operation/commands/drop_database.rb,
lib/mongo/monitoring/event/topology_closed.rb,
lib/mongo/operation/commands/parallel_scan.rb,
lib/mongo/operation/write/command/writable.rb,
lib/mongo/collection/view/builder/op_query.rb,
lib/mongo/monitoring/event/command_started.rb,
lib/mongo/monitoring/command_log_subscriber.rb,
lib/mongo/collection/view/builder/modifiers.rb,
lib/mongo/monitoring/event/topology_changed.rb,
lib/mongo/server_selector/primary_preferred.rb,
lib/mongo/error/invalid_bulk_operation_type.rb,
lib/mongo/monitoring/event/topology_opening.rb,
lib/mongo/operation/write/bulk/update/result.rb,
lib/mongo/operation/write/bulk/delete/result.rb,
lib/mongo/collection/view/builder/map_reduce.rb,
lib/mongo/operation/commands/get_more/result.rb,
lib/mongo/operation/write/command/drop_index.rb,
lib/mongo/monitoring/event/command_succeeded.rb,
lib/mongo/operation/write/bulk/insert/result.rb,
lib/mongo/error/invalid_replacement_document.rb,
lib/mongo/server_selector/secondary_preferred.rb,
lib/mongo/operation/commands/aggregate/result.rb,
lib/mongo/operation/write/command/remove_user.rb,
lib/mongo/cursor/builder/kill_cursors_command.rb,
lib/mongo/operation/commands/collections_info.rb,
lib/mongo/operation/write/command/create_user.rb,
lib/mongo/operation/commands/list_collections.rb,
lib/mongo/operation/write/command/update_user.rb,
lib/mongo/collection/view/builder/aggregation.rb,
lib/mongo/collection/view/builder/find_command.rb,
lib/mongo/operation/commands/users_info/result.rb,
lib/mongo/error/unchangeable_collection_option.rb,
lib/mongo/operation/write/bulk/legacy_mergable.rb,
lib/mongo/operation/commands/map_reduce/result.rb,
lib/mongo/operation/write/command/create_index.rb,
lib/mongo/operation/write/write_command_enabled.rb,
lib/mongo/operation/commands/list_indexes/result.rb,
lib/mongo/operation/commands/parallel_scan/result.rb,
lib/mongo/monitoring/server_closed_log_subscriber.rb,
lib/mongo/monitoring/server_opening_log_subscriber.rb,
lib/mongo/monitoring/topology_changed_log_subscriber.rb,
lib/mongo/operation/commands/collections_info/result.rb,
lib/mongo/operation/commands/list_collections/result.rb,
lib/mongo/monitoring/topology_opening_log_subscriber.rb,
lib/mongo/monitoring/event/server_description_changed.rb,
lib/mongo/server/description/inspector/primary_elected.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 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, Loggable, Operation, Options, Protocol, Retryable, ServerSelector, WriteConcern Classes: Address, BulkWrite, Client, Cluster, Collection, Cursor, DBRef, Database, Error, Logger, Monitoring, Server, Socket, URI

Constant Summary

VERSION =

The current version of the driver.

Since:

  • 2.0.0

'2.4.3'.freeze