diff --git a/asyncio_mongo/protocol.py b/asyncio_mongo/protocol.py index 1ea5f83..cca62c8 100644 --- a/asyncio_mongo/protocol.py +++ b/asyncio_mongo/protocol.py @@ -23,6 +23,10 @@ from asyncio_mongo.log import logger _ONE = b"\x01\x00\x00\x00" _ZERO = b"\x00\x00\x00\x00" +_QUERY_OPTIONS = { + "tailable_cursor": 2, + "oplog_replay": 8, + "await_data": 32} """Low level connection to Mongo.""" @@ -163,14 +167,22 @@ class MongoProtocol(asyncio.Protocol): message = struct.pack("