Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #439: split query vs. iterator apart. #487

Merged
merged 12 commits into from
Jan 6, 2015
14 changes: 0 additions & 14 deletions gcloud/datastore/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

from gcloud.datastore import helpers
from gcloud.datastore.entity import Entity
from gcloud.datastore.query import Query
from gcloud.datastore.transaction import Transaction


Expand Down Expand Up @@ -75,19 +74,6 @@ def id(self):

return self._id

def query(self, *args, **kwargs):
"""Create a query bound to this dataset.

:param args: positional arguments, passed through to the Query

:param kw: keyword arguments, passed through to the Query

:rtype: :class:`gcloud.datastore.query.Query`
:returns: a new Query instance, bound to this dataset.
"""
kwargs['dataset'] = self
return Query(*args, **kwargs)

def entity(self, kind, exclude_from_indexes=()):
"""Create an entity bound to this dataset.

Expand Down
Loading