7669900126
- Introduced OrderedHash because db commands require that the command key be first. - Fixed BSON (de)serialization of object ids. - Simplified @coll.drop_indexes. - Renamed some method parameters to make their type more clear (for example, "collection" became "collection_name"). - Got the index_information test working.
22 lines
467 B
Ruby
22 lines
467 B
Ruby
require 'mongo/message/message'
|
|
require 'mongo/message/opcodes'
|
|
|
|
module XGen
|
|
module Mongo
|
|
module Driver
|
|
|
|
class GetMoreMessage < Message
|
|
|
|
def initialize(db_name, collection_name, cursor)
|
|
super(OP_GET_MORE)
|
|
write_int(0)
|
|
write_string("#{db_name}.#{collection_name}")
|
|
write_int(0) # num to return; leave it up to the db for now
|
|
write_long(cursor)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|