Module: Mongo::Operation Private

Defined in:
build/ruby-driver-v2.19/lib/mongo/operation.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/operation/count.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/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/operation/distinct.rb,
build/ruby-driver-v2.19/lib/mongo/operation/get_more.rb,
build/ruby-driver-v2.19/lib/mongo/operation/aggregate.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/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/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/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/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/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/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/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/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/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/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/operation/find/builder/modifiers.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/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/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/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/operation/kill_cursors/command_builder.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/executable_no_validate.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/write_concern_supported.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/read_preference_supported.rb,
build/ruby-driver-v2.19/lib/mongo/operation/shared/bypass_document_validation.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

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

This module encapsulates all of the operation classes defined by the driver.

The operation classes take Ruby options as constructor parameters. For example, :read contains read preference and :read_concern contains read concern, whereas server commands use readConcern field for the read concern and read preference is passed as $readPreference or secondaryOk wire protocol flag bit.

Defined Under Namespace

Modules: BypassDocumentValidation, CausalConsistencySupported, Executable, ExecutableNoValidate, ExecutableTransactionLabel, Idable, Limited, OpMsgExecutable, PolymorphicLookup, PolymorphicResult, ReadPreferenceSupported, ResponseHandling, SessionsSupported, Specifiable, Validatable, Write, WriteConcernSupported Classes: Aggregate, CollectionsInfo, Command, Context, Count, Create, CreateIndex, CreateUser, Delete, Distinct, Drop, DropDatabase, DropIndex, Explain, Find, GetMore, Indexes, Insert, KillCursors, ListCollections, MapReduce, ObjectIdGenerator, OpMsgBase, ParallelScan, RemoveUser, Result, Update, UpdateUser, UsersInfo, WriteCommand

Constant Summary collapse

Q =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The q field constant.

Since:

  • 2.1.0

'q'.freeze
U =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The u field constant.

Since:

  • 2.1.0

'u'.freeze
LIMIT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The limit field constant.

Since:

  • 2.1.0

'limit'.freeze
MULTI =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The multi field constant.

Since:

  • 2.1.0

'multi'.freeze
UPSERT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The upsert field constant.

Since:

  • 2.1.0

'upsert'.freeze
COLLATION =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The collation field constant.

Since:

  • 2.4.0

'collation'.freeze
ARRAY_FILTERS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The array filters field constant.

Since:

  • 2.5.0

'arrayFilters'.freeze
OPERATION_TIME =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The operation time field constant.

Since:

  • 2.5.0

'operationTime'.freeze
CLUSTER_TIME =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Deprecated.

The cluster time field constant.

Since:

  • 2.5.0

'$clusterTime'.freeze