Title: Decouple Transaction from Connection · Issue #514 · googleapis/google-cloud-python · GitHub
Open Graph Title: Decouple Transaction from Connection · Issue #514 · googleapis/google-cloud-python
X Title: Decouple Transaction from Connection · Issue #514 · googleapis/google-cloud-python
Description: After #509 is in, We need to decouple Transaction from Connection and allow Transaction to inherit from Batch. Things to be done Change Transaction to inherit from Batch (#516) Track "active" batches / transactions in a thread-local stac...
Open Graph Description: After #509 is in, We need to decouple Transaction from Connection and allow Transaction to inherit from Batch. Things to be done Change Transaction to inherit from Batch (#516) Track "active" batch...
X Description: After #509 is in, We need to decouple Transaction from Connection and allow Transaction to inherit from Batch. Things to be done Change Transaction to inherit from Batch (#516) Track "active&q...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/514
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Decouple Transaction from Connection","articleBody":"~~After #509 is in,~~ We need to decouple `Transaction` from `Connection` and allow `Transaction` to inherit from `Batch`.\n\nThings to be done\n- [x] Change `Transaction` to inherit from `Batch` (#516)\n- [x] Track \"active\" batches / transactions in a thread-local stack (#518)\n- [x] Replace `Key.get()` with top-level `datastore.get()` (#520, #521, #522)\n- [x] Replace `Entity.save()` with top-level `datastore.put()` (#548)\n- [x] Replace `Key.delete()` witg top-level `datastore.delete()` (#522)\n- [x] Remove non-RPC methods `save_entity()` and `delete_entities()` from `Connection` (#550)\n- [x] Remove `Connection.mutation()`. (#550)\n- [x] Remove `Connection.transaction()` (#550)\n\nAlso relevant: #447 (`Transaction` and `Batch` should not have a `dataset_id` until they have objects to work with)\n\n---\n\nFor reference, RPC [methods](https://github.com/GoogleCloudPlatform/google-cloud-datastore/blob/21e029b2657ebb15fef5429c90c4315326855fd1/proto/datastore_v1.proto#L573) are:\n- Lookup\n- RunQuery\n- BeginTransaction\n- Commit\n- Rollback\n- AllocateIds\n","author":{"url":"https://github.com/dhermes","@type":"Person","name":"dhermes"},"datePublished":"2015-01-08T18:14:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/514/google-cloud-python/issues/514"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:18376c94-407f-dcd7-a9f8-f35a38f8e0fc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9728:216A08:6B3668:9026CB:6A4DD1E7 |
| html-safe-nonce | e865751918d156932fb0f8ebe3d5e83a1c9b347651095d42ab87d644e43644cb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzI4OjIxNkEwODo2QjM2Njg6OTAyNkNCOjZBNEREMUU3IiwidmlzaXRvcl9pZCI6Ijc2MDgyNjA0NzkwMTQ1MjMzNjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 98ef5f40a207e37bae48fdc8acb6e4eee3c3586823328f4ed511f2303965ed7d |
| hovercard-subject-tag | issue:53782143 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/514/issue_layout |
| twitter:image | https://opengraph.githubassets.com/db60fd6a6e27888e06f391c2093766768f87df179a1529bb53c5380db770cf1e/googleapis/google-cloud-python/issues/514 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/db60fd6a6e27888e06f391c2093766768f87df179a1529bb53c5380db770cf1e/googleapis/google-cloud-python/issues/514 |
| og:image:alt | After #509 is in, We need to decouple Transaction from Connection and allow Transaction to inherit from Batch. Things to be done Change Transaction to inherit from Batch (#516) Track "active" batch... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dhermes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width