GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add 'keys_only' method to Query. by tseaver · Pull Request #489 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Jan 6, 2015

Copy link
Copy Markdown
Contributor

Sets the projection to include only entity keys.

Supercedes #466.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tseaver
Add 'keys_only' method to Query.
0c5cef5
Sets the projection to include only entity keys.

Supercedes #466.
@tseaver tseaver mentioned this pull request Jan 6, 2015
Add keys function to Query. #466
Closed
@dhermes

dhermes commented Jan 6, 2015

Copy link
Copy Markdown
Contributor

This mostly LGTM but feels a bit different than the other setters (I'm probably just paranoid).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Jan 6, 2015

Copy link
Copy Markdown
Contributor Author

We already have a split between the "property" setters (e.g., order, projection) and the additive filter. The keys_only one is really just a convenience shortcut for query.projection = ['__key__'] (or maybe an encapsulation of the "special" __key__ name).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Jan 6, 2015

Copy link
Copy Markdown
Contributor

Yeah still LGTM. I wonder if down the road it'd be worth having a keys_only fetch which throws away the do-nothing Entity wrapper in a __key__ projection.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Jan 6, 2015

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 0c5cef5 on tseaver:466-query-keys_only into 8727c0d on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tseaver added a commit that referenced this pull request Jan 6, 2015
@tseaver
Merge pull request #489 from tseaver/466-query-keys_only
626adca
Add 'keys_only' method to Query.
@tseaver
tseaver merged commit 626adca into googleapis:master Jan 6, 2015
@tseaver
tseaver deleted the 466-query-keys_only branch January 6, 2015 17:35
@dhermes dhermes added the api: datastore Issues related to the Datastore API. label Dec 31, 2015
parthea pushed a commit that referenced this pull request Aug 15, 2023
@release-please
chore(main): release 1.17.0 (#489)
c65d330
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
@release-please
chore(main): release 2.14.0 (#489)
2e50ce0
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
@renovate-bot
chore(deps): update all dependencies (#489)
15831d0
parthea pushed a commit that referenced this pull request Sep 22, 2023
@renovate-bot
chore(deps): update dependency backoff to v2.2.1 (#489)
4085fc0
parthea pushed a commit that referenced this pull request Sep 22, 2023
@renovate-bot
chore(deps): update dependency google-cloud-pubsub to v2.14.1 (#489)
247aa84
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
chore(python): exclude setup.py in renovate config (#489)
80df6c8
Source-Link: googleapis/synthtool@56da63e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:993a058718e84a82fda04c3177e58f0a43281a996c7c395e0a56ccc4d6d210d7
parthea pushed a commit that referenced this pull request Oct 21, 2023
@renovate-bot
chore(deps): update dependency pytest to v7.1.3 (#489)
6cfa32c
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
chore: store artifacts in placer (#489)
5d04f04
Source-Link: googleapis/synthtool@cb96037
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2d816f26f728ac8b24248741e7d4c461c09764ef9f7be3684d557c9632e46dbd

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request Aug 21, 2025
@renovate-bot @parthea
chore(deps): update dependency google-cloud-bigquery to v3.3.2 (#489)
add6854
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea added a commit that referenced this pull request Sep 16, 2025
@renovate-bot @parthea
chore(deps): update dependency google-cloud-bigquery to v3.3.2 (#489)
4f7a75c
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this pull request Sep 18, 2025
@gcf-owl-bot
chore(deps): update actions/checkout action to v3 (#489)
c33d8a8
Source-Link: googleapis/synthtool@ca87909
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:6162c384d685c5fe22521d3f37f6fc732bf99a085f6d47b677dbcae97fc21392

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 22, 2025
@gcf-owl-bot
chore(python): update release.sh to use keystore (#489)
9f183d9
Source-Link: googleapis/synthtool@69fda12
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:ae600f36b6bc972b368367b6f83a1d91ec2c82a4a116b383d67d547c56fe6de3

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
@gcf-owl-bot
chore: [autoapprove] Update black and isort to latest versions (#489
97d4af8
)

Source-Link: googleapis/synthtool@0c7b033
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
@release-please
chore(main): release 1.11.0 (#489)
4fb4af5
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
@tseaver
fix: handle empty last chunk correctly in 'Query._chunkify' (#489)
d596c04
Closes #487.
Supersedes #488.
parthea pushed a commit that referenced this pull request Nov 24, 2025
@gcf-owl-bot
feat: KMS configuration in settings (#489)
ea32e45
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 431037888

Source-Link: googleapis/googleapis@b3397f5

Source-Link: googleapis/googleapis-gen@510b54e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTEwYjU0ZTFjZGVmZDUzMTczOTg0ZGYxNjY0NTA4MTMwOGZlODk3ZSJ9

chore: use gapic-generator-python 0.63.4
chore: fix snippet region tag format
chore: fix docstring code block formatting
PiperOrigin-RevId: 430730865

Source-Link: googleapis/googleapis@ea58002

Source-Link: googleapis/googleapis-gen@ca893ff
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2E4OTNmZjhhZjI1ZmM3ZmUwMDFkZTE0MDVhNTE3ZDgwNDQ2ZWNjYSJ9

chore: formatting changes

PiperOrigin-RevId: 430243637

Source-Link: googleapis/googleapis@95da686

Source-Link: googleapis/googleapis-gen@a1f056b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTFmMDU2Yjc2ODljY2JlNWFlYmMwYmZkZDMxOGU5OTQ1ZWU3NjAyYSJ9

feat: Update Logging API with latest changes
PiperOrigin-RevId: 429289471

Source-Link: googleapis/googleapis@acd5f89

Source-Link: googleapis/googleapis-gen@8a12622
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGExMjYyMjUzNmFlMmU5YTg5NzgxOThhMTUxZTg5MjM0YjgzOWIyMCJ9

chore: use gapic-generator-python 0.63.2
docs: add generated snippets
chore: update copyright year to 2022

PiperOrigin-RevId: 427792504

Source-Link: googleapis/googleapis@55b9e1e

Source-Link: googleapis/googleapis-gen@bf4e86b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9
parthea pushed a commit that referenced this pull request Nov 24, 2025
@release-please
chore: release 1.4.2 (#489)
6e37f77
* chore: updated CHANGELOG.md [ci skip]

* chore: updated setup.py

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 25, 2025
@gcf-owl-bot
feat: KMS configuration in settings (#489)
acfa916
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 431037888

Source-Link: googleapis/googleapis@b3397f5

Source-Link: googleapis/googleapis-gen@510b54e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTEwYjU0ZTFjZGVmZDUzMTczOTg0ZGYxNjY0NTA4MTMwOGZlODk3ZSJ9

chore: use gapic-generator-python 0.63.4
chore: fix snippet region tag format
chore: fix docstring code block formatting
PiperOrigin-RevId: 430730865

Source-Link: googleapis/googleapis@ea58002

Source-Link: googleapis/googleapis-gen@ca893ff
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2E4OTNmZjhhZjI1ZmM3ZmUwMDFkZTE0MDVhNTE3ZDgwNDQ2ZWNjYSJ9

chore: formatting changes

PiperOrigin-RevId: 430243637

Source-Link: googleapis/googleapis@95da686

Source-Link: googleapis/googleapis-gen@a1f056b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTFmMDU2Yjc2ODljY2JlNWFlYmMwYmZkZDMxOGU5OTQ1ZWU3NjAyYSJ9

feat: Update Logging API with latest changes
PiperOrigin-RevId: 429289471

Source-Link: googleapis/googleapis@acd5f89

Source-Link: googleapis/googleapis-gen@8a12622
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGExMjYyMjUzNmFlMmU5YTg5NzgxOThhMTUxZTg5MjM0YjgzOWIyMCJ9

chore: use gapic-generator-python 0.63.2
docs: add generated snippets
chore: update copyright year to 2022

PiperOrigin-RevId: 427792504

Source-Link: googleapis/googleapis@55b9e1e

Source-Link: googleapis/googleapis-gen@bf4e86b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9
parthea added a commit that referenced this pull request Mar 2, 2026
@parthea
chore: librarian release pull request: 20251111T145430Z (#489)
087f1f8
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v1.0.1-0.20251108121427-a138f6a0397e
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:c8612d3fffb3f6a32353b2d1abd16b61e87811866f7ec9d65b59b02eb452a620
<details><summary>google-resumable-media: 2.8.0</summary>

##
[2.8.0](googleapis/google-resumable-media-python@v2.7.2...v2.8.0)
(2025-11-11)

### Features

* Add support for Python 3.13 and 3.14 (#485)
([9937233d](googleapis/google-resumable-media-python@9937233d))

### Bug Fixes

* resolve issue where pre-release versions of dependencies are installed
(#481)
([23dafcf3](googleapis/google-resumable-media-python@23dafcf3))

* remove setup.cfg configuration for creating universal wheels (#484)
([75dbecf8](googleapis/google-resumable-media-python@75dbecf8))

</details>
parthea pushed a commit that referenced this pull request Mar 6, 2026
@c24t
fix: Change release script package name (#489)
ec0622b
parthea pushed a commit that referenced this pull request Mar 9, 2026
@renovate-bot
chore(deps): update dependency opentelemetry-api to v1.28.0 (#489)
6449b9a
parthea pushed a commit that referenced this pull request Mar 9, 2026
@daniellehanks
feat: add support for Etag headers on reads (#489)
5999fe3
Support conditional requests based on ETag for read operations (`reload`, `exists`, `download_*`). My own testing seems to indicate that the JSON API does not support ETag If-Match/If-None-Match headers on modify requests (`patch`, `delete`, etc.), please correct me if I am mistaken.

This part two of #451. Part one in googleapis/python-storage#488.
Fixes #451 🦕
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: datastore Issues related to the Datastore API.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@tseaver @dhermes @coveralls
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.