Module: Mongo::Operation Private

Defined in:
lib/mongo/operation.rb,
lib/mongo/operation/drop.rb,
lib/mongo/operation/find.rb,
lib/mongo/operation/count.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/operation/command.rb,
lib/mongo/operation/context.rb,
lib/mongo/operation/explain.rb,
lib/mongo/operation/indexes.rb,
lib/mongo/operation/distinct.rb,
lib/mongo/operation/get_more.rb,
lib/mongo/operation/aggregate.rb,
lib/mongo/operation/drop_index.rb,
lib/mongo/operation/map_reduce.rb,
lib/mongo/operation/users_info.rb,
lib/mongo/operation/create_user.rb,
lib/mongo/operation/drop/op_msg.rb,
lib/mongo/operation/find/op_msg.rb,
lib/mongo/operation/find/result.rb,
lib/mongo/operation/op_msg_base.rb,
lib/mongo/operation/remove_user.rb,
lib/mongo/operation/update_user.rb,
lib/mongo/operation/count/op_msg.rb,
lib/mongo/operation/create_index.rb,
lib/mongo/operation/kill_cursors.rb,
lib/mongo/operation/shared/timed.rb,
lib/mongo/operation/shared/write.rb,
lib/mongo/operation/create/op_msg.rb,
lib/mongo/operation/delete/op_msg.rb,
lib/mongo/operation/delete/result.rb,
lib/mongo/operation/drop_database.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/op_msg.rb,
lib/mongo/operation/update/result.rb,
lib/mongo/operation/write_command.rb,
lib/mongo/operation/command/op_msg.rb,
lib/mongo/operation/explain/op_msg.rb,
lib/mongo/operation/explain/result.rb,
lib/mongo/operation/indexes/op_msg.rb,
lib/mongo/operation/indexes/result.rb,
lib/mongo/operation/shared/limited.rb,
lib/mongo/operation/distinct/op_msg.rb,
lib/mongo/operation/get_more/op_msg.rb,
lib/mongo/operation/get_more/result.rb,
lib/mongo/operation/aggregate/op_msg.rb,
lib/mongo/operation/aggregate/result.rb,
lib/mongo/operation/collections_info.rb,
lib/mongo/operation/list_collections.rb,
lib/mongo/operation/drop_index/op_msg.rb,
lib/mongo/operation/drop_search_index.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/operation/create_user/op_msg.rb,
lib/mongo/operation/delete/bulk_result.rb,
lib/mongo/operation/find/builder/flags.rb,
lib/mongo/operation/insert/bulk_result.rb,
lib/mongo/operation/remove_user/op_msg.rb,
lib/mongo/operation/shared/specifiable.rb,
lib/mongo/operation/shared/validatable.rb,
lib/mongo/operation/update/bulk_result.rb,
lib/mongo/operation/update_user/op_msg.rb,
lib/mongo/operation/create_index/op_msg.rb,
lib/mongo/operation/kill_cursors/op_msg.rb,
lib/mongo/operation/update_search_index.rb,
lib/mongo/operation/drop_database/op_msg.rb,
lib/mongo/operation/find/builder/command.rb,
lib/mongo/operation/parallel_scan/op_msg.rb,
lib/mongo/operation/parallel_scan/result.rb,
lib/mongo/operation/write_command/op_msg.rb,
lib/mongo/operation/create_search_indexes.rb,
lib/mongo/operation/find/builder/modifiers.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/operation/drop_search_index/op_msg.rb,
lib/mongo/operation/get_more/command_builder.rb,
lib/mongo/operation/shared/op_msg_executable.rb,
lib/mongo/operation/shared/response_handling.rb,
lib/mongo/operation/shared/polymorphic_lookup.rb,
lib/mongo/operation/shared/polymorphic_result.rb,
lib/mongo/operation/shared/sessions_supported.rb,
lib/mongo/operation/shared/object_id_generator.rb,
lib/mongo/operation/shared/result/aggregatable.rb,
lib/mongo/operation/update_search_index/op_msg.rb,
lib/mongo/operation/create_search_indexes/op_msg.rb,
lib/mongo/operation/kill_cursors/command_builder.rb,
lib/mongo/operation/shared/executable_no_validate.rb,
lib/mongo/operation/shared/write_concern_supported.rb,
lib/mongo/operation/shared/read_preference_supported.rb,
lib/mongo/operation/shared/bypass_document_validation.rb,
lib/mongo/operation/shared/causal_consistency_supported.rb,
lib/mongo/operation/shared/executable_transaction_label.rb,
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, Timed, Validatable, Write, WriteConcernSupported Classes: Aggregate, CollectionsInfo, Command, Context, Count, Create, CreateIndex, CreateSearchIndexes, CreateUser, Delete, Distinct, Drop, DropDatabase, DropIndex, DropSearchIndex, Explain, Find, GetMore, Indexes, Insert, KillCursors, ListCollections, MapReduce, ObjectIdGenerator, OpMsgBase, ParallelScan, RemoveUser, Result, Update, UpdateSearchIndex, 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