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 — DISCUSSION: Does a Transaction need to be bound to a Connection and vice versa · Issue #495 · googleapis/google-cloud-python

DISCUSSION: Does a Transaction need to be bound to a Connection and vice versa #495

New issue
Copy link
New issue
Copy link
Closed
Closed
DISCUSSION: Does a Transaction need to be bound to a Connection and vice versa#495
Copy link
Assignees
dhermes
Labels
api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

Description

@dhermes
dhermes
opened on Jan 7, 2015
Issue body actions

It seems we could have connection=None as an optional / implicit argument in the Transaction methods add_auto_id_entity(), begin(), commit() and rollback().

On Connection, the current transaction is used to alter the behavior of the methods, e.g. from commit()

        if self.transaction():
            request.mode = datastore_pb.CommitRequest.TRANSACTIONAL
            request.transaction = self.transaction().id()
        else:
            request.mode = datastore_pb.CommitRequest.NON_TRANSACTIONAL

It seems instead this separation would benefit by having Transaction subclass Connection and adding the "extra" transaction parts when needed.

Activity

  1. dhermes
    added
    type: questionRequest for information or clarification. Not an issue.
    api: datastoreIssues related to the Datastore API.
    on Jan 7, 2015
  2. dhermes commented on Jan 8, 2015

    @dhermes
    dhermes
    on Jan 8, 2015
    ContributorAuthor
    More actions

    Closing in favor of #514

  3. dhermes
    closed this as completedon Jan 8, 2015
  4. jgeewax
    modified the milestone: This milestone has been deleted on Jan 30, 2015
  5. tswast
    added a commit that references this issue on Mar 26, 2019

    Document enum classes (googleapis#495)

    5d036f7
  6. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  7. parthea
    added a commit that references this issue on Aug 15, 2023

    feat(v3beta1): added JSON_PACKAGE field to ExportAgentRequest (#495)

    0623793
  8. vchudnov-g
    added a commit that references this issue on Sep 20, 2023

    chore(deps): update dependency flask to v2.1.1 (#495)

    08597b5
  9. parthea
    added 2 commits that reference this issue on Sep 22, 2023

    feat: added node groups API protos (#495)

    d19f01a

    chore: delete migrated samples (#495)

    ce3619b
  10. parthea
    added 3 commits that reference this issue on Oct 21, 2023

    chore(deps): update dependency google-cloud-asset to v3.13.1 (#495)

    9ceb857

    chore: store artifacts in placer (#495)

    5e1ee77

    chore(main): release 3.1.4 (#495)

    c07f2e5
  11. parthea
    added 5 commits that reference this issue on Nov 24, 2025

    chore: release 0.26.0 (#495)

    0ce98c0

    feat: retry and retry_async support streaming rpcs (#495)

    99795c4

    chore(deps): update dependency protobuf to v4.21.6 [security] (#495)

    cbd4fcb

    chore: update docfx minimum Python version (#495)

    224ab4b

    perf: improve context cache performance (#495)

    6f3213c
  12. parthea
    added 2 commits that reference this issue on Mar 2, 2026

    process: set publisher methods' max retry to 600s (#495)

    0afe235

    fix: add max_length support to Gzip/Brotli decoders for urllib3 2.6+ (#…

    cb90060
  13. parthea
    added 3 commits that reference this issue on Mar 9, 2026

    docs: add sample for stale reads (#539)

    This issue will close once commit 7416818 is merged into the 'main' branch.
    7416818

    chore: remove 'test_utils' fossil (#495)

    This issue will close once commit 0d50ef3 is merged into the 'main' branch.
    0d50ef3

    chore: librarian release pull request: 20260312T071352Z (#16087)

    This issue will close once commit 4192290 is merged into the 'main' branch.
    4192290
  14. 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

Labels

api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    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.