Skip to content

Commit

Permalink
Merge pull request mongoid#385 from rcresswell/partial-query-flag
Browse files Browse the repository at this point in the history
Add partial flag to the query wire protocol
  • Loading branch information
durran committed Aug 22, 2015
2 parents 7ca2de6 + e4927ac commit cf817ca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/moped/protocol/query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ class Query

# @!attribute
# The flags for the query. Supported flags are: +:tailable+, +:slave_ok+,
# +:no_cursor_timeout+, +:await_data+, +:exhaust+.
# +:no_cursor_timeout+, +:await_data+, +:exhaust+, +:partial+.
#
# @param [ Array ] flags the flags for this message
# @return [ Array ] the flags for this message
flags :flags, tailable: 2 ** 1,
slave_ok: 2 ** 2,
no_cursor_timeout: 2 ** 4,
await_data: 2 ** 5,
exhaust: 2 ** 6
exhaust: 2 ** 6,
partial: 2 ** 7

# @!attribute full_collection_name
# @return [ String ] the namespaced collection name
Expand Down Expand Up @@ -145,7 +146,7 @@ def no_timeout=(enable)
# @option options [ Integer ] :limit The number of documents to return.
# @option options [ Hash ] :fields The limited fields to return.
# @option options [ Array ] :flags The flags for querying. Supported flags
# are: :tailable, :slave_ok, :no_cursor_timeout, :await_data, :exhaust.
# are: :tailable, :slave_ok, :no_cursor_timeout, :await_data, :exhaust, :partial.
#
# @since 1.0.0
def initialize(database, collection, selector, options = {})
Expand Down

0 comments on commit cf817ca

Please sign in to comment.