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
Merged

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

merged 12 commits into from
Jan 6, 2015

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Jan 3, 2015

Split Query (abstract constraints) from excution/iteration (cursor, etc.)

Also, rip out the protobuf attributes: doing the ongoing bookkeeping on them was painful (and a bug magnet). Instead, build the protobuf when we need it (just before fetching data), using values from both the query and the iterator.

Fixes #439.

Type-checking the 'dataset' argument to 'Query' introduced a cycle.
… etc.)

Also, rip out the protobuf attributes:  doing the ongoing bookkeeping on
them was painful (and a bug magnet).  Instead, build the protobuf when
we need it (just before fetching data), using values from both the query
and the iterator.

Fixes #439.
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 539c418 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.


def with_cursor(self, start_cursor, end_cursor=None):
"""Specifies the starting / ending positions in a query's result set.
def _pb_from_query(query):

This comment was marked as spam.

This comment was marked as spam.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 4645b72 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 72a9520 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 537e868 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 704f115 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.

Also, remove other mentions of cloning queries on write.
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 2832ce5 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.

@dhermes
Copy link
Contributor

dhermes commented Jan 5, 2015

Only thing left to resolve is the discussion of _Iterator's publicness? Am I missing something?

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 2516ff8 on tseaver:439-split_query_iterator into b79d862 on GoogleCloudPlatform:master.

@dhermes
Copy link
Contributor

dhermes commented Jan 6, 2015

Great. LGTM. We are good to merge (unless anything comes to mind).

#466 likely needs to be re-done now? Also the absence of _clone makes it more difficult to do something like #466

We can discuss there.

tseaver added a commit that referenced this pull request Jan 6, 2015
@tseaver tseaver merged commit 9142051 into googleapis:master Jan 6, 2015
@tseaver tseaver deleted the 439-split_query_iterator branch January 6, 2015 01:00
@dhermes
Copy link
Contributor

dhermes commented Jan 6, 2015

w00t! @tseaver Can you give #485 a look? I'll rebase the PRs in #477 and ping you.

@dhermes dhermes added the api: datastore Issues related to the Datastore API. label Dec 31, 2015
atulep pushed a commit that referenced this pull request Apr 3, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
atulep pushed a commit that referenced this pull request Apr 6, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
atulep pushed a commit that referenced this pull request Apr 6, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
atulep pushed a commit that referenced this pull request Apr 18, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
vchudnov-g pushed a commit that referenced this pull request Sep 20, 2023
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 21, 2023
* docs: Fix formatting of request arg in docstring

chore: Update gapic-generator-python to v1.9.1
PiperOrigin-RevId: 518604533

Source-Link: googleapis/googleapis@8a085ae

Source-Link: googleapis/googleapis-gen@b2ab4b0
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJhYjRiMGEwYWUyOTA3ZTgxMmMyMDkxOThhNzRlMDg5OGFmY2IwNCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 22, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the Datastore API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split query specification (kind, filter, ancestor, etc.) from query execution (results, cursor, more_results)
3 participants