Added tailable and await_data options to find()
This commit is contained in:
@@ -90,7 +90,8 @@ class Collection(object):
|
||||
return {}
|
||||
|
||||
@coroutine
|
||||
def find(self, spec=None, skip=0, limit=0, fields=None, filter=None, _proto=None):
|
||||
def find(self, spec=None, skip=0, limit=0, fields=None, filter=None, _proto=None,
|
||||
tailable=False, await_data=False):
|
||||
if spec is None:
|
||||
spec = SON()
|
||||
|
||||
@@ -121,7 +122,8 @@ class Collection(object):
|
||||
proto = self._database._protocol
|
||||
else:
|
||||
proto = _proto
|
||||
return (yield from proto.OP_QUERY(str(self), spec, skip, limit, fields))
|
||||
return (yield from proto.OP_QUERY(str(self), spec, skip, limit, fields,
|
||||
tailable, await_data))
|
||||
|
||||
@coroutine
|
||||
def find_one(self, spec=None, fields=None, _proto=None):
|
||||
|
||||
Reference in New Issue
Block a user