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 — Support update/insert in save() · Issue #599 · googleapis/google-cloud-python

Support update/insert in save() #599

New issue
Copy link
New issue
Copy link
Closed
Closed
Support update/insert in save()#599
Copy link
Assignees
tseaverdhermes
Labels
api: datastoreIssues related to the Datastore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
Milestone
Datastore Future

Description

@dhermes
dhermes
opened on Feb 8, 2015
Issue body actions

See googleapis/google-cloud-node#387

Activity

Next
  1. dhermes
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    api: datastoreIssues related to the Datastore API.
    on Feb 8, 2015
  2. dhermes
    added this to the Datastore Future milestone on Feb 10, 2015
  3. tseaver commented on Feb 11, 2015

    @tseaver
    tseaver
    on Feb 11, 2015
    Contributor
    More actions

    AFAICT, the "right" way to map those choices would be to add datastore.insert() and datastore.update(), methods, which would then have to expose the failure cases which datastore.put() elides via upsert (the only point in them would be to have the exceptions raised from insert() if entities exist already with the given keys, or from update() if no entities exist).

    I'm not sure of the real utility of such methods from an application development perspective, but we could offer them for API-completeness sake.

  4. dhermes commented on Feb 12, 2015

    @dhermes
    dhermes
    on Feb 12, 2015
    ContributorAuthor
    More actions

    I don't even think they need to be top-level functions in datastore.api. We can just make them public methods on Batch so power users can use them. (And in the future we may want insert only behavior, specifically in a transaction. This was the original report.)

  5. dmcgrath commented on Mar 17, 2017

    @dmcgrath
    dmcgrath
    on Mar 17, 2017
    More actions

    Yes, this should definitely support insert, upsert, update as they are fundamental features of the database, not just power user features. For an example of how our other Cloud Datastore libraries to this, please review Node.js and .NET

  6. bjwatson
    added
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    status: acknowledged
    on Mar 20, 2017
  7. lukesneeringer
    removed
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Aug 11, 2017
  8. lukesneeringer
    removed
    status: acknowledged
    on Nov 8, 2017
  9. chemelnucfin
    assigned
    tseaver
    ,
    dhermes
    and
    chemelnucfin
    on Jan 15, 2018
  10. chemelnucfin commented on Jan 22, 2018

    @chemelnucfin
    chemelnucfin
    on Jan 22, 2018
    Contributor
    More actions

    Feature Requests will now be tracked in our Project Feature Request. Please feel free to continue the discussions here.

  11. chemelnucfin
    closed this as completedon Jan 22, 2018
  12. 6 remaining items

  13. parthea
    added 9 commits that reference this issue on Nov 22, 2025

    docs: add samples from bigtable (#38)

    ab589eb

    chore: test minimum dependencies in python 3.7 (#599)

    276e7a6

    chore: release 0.33.3 (#599)

    57b2318

    chore(main): release 2.17.0 (#599)

    29af222

    chore(main): release 2.5.2 (#599)

    f7cfa21

    Generate readmes for most service samples [(#599)](GoogleCloudPlatfor…

    b4b0989

    chore(deps): update all dependencies (#599)

    1478510

    chore(deps): update all dependencies (#599)

    47b641c

    chore: release 1.21.1 (#599)

    817e2f5
  14. parthea
    added 5 commits that reference this issue on Mar 2, 2026

    samples: add samples from pubsub/cloud-client (#134)

    8c90f22

    Generate readmes for most service samples [(#599)](GoogleCloudPlatfor…

    d9c4c97

    chore: README updates (#599)

    8a6bdfc

    samples: add cloud client samples from python-docs-samples (#626)

    2b99c9d

    chore: release 3.11.0 (#599)

    27ff97e
  15. parthea
    added a commit that references this issue on Sep 8, 2026

    docs: migrate code from googleapis/python-bigquery (#18303)

    23f9a74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dhermes
    dhermes
  • @tseaver
    tseaver

Labels

api: datastoreIssues related to the Datastore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    • Datastore Future

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.