Added tailable and await_data options to find()
This commit is contained in:
@@ -90,7 +90,8 @@ class Collection(object):
|
|||||||
return {}
|
return {}
|
||||||
|
|
||||||
@coroutine
|
@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:
|
if spec is None:
|
||||||
spec = SON()
|
spec = SON()
|
||||||
|
|
||||||
@@ -121,7 +122,8 @@ class Collection(object):
|
|||||||
proto = self._database._protocol
|
proto = self._database._protocol
|
||||||
else:
|
else:
|
||||||
proto = _proto
|
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
|
@coroutine
|
||||||
def find_one(self, spec=None, fields=None, _proto=None):
|
def find_one(self, spec=None, fields=None, _proto=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user