Title: How to use readonly transaction · Issue #97 · googleapis/python-spanner-sqlalchemy · GitHub
Open Graph Title: How to use readonly transaction · Issue #97 · googleapis/python-spanner-sqlalchemy
X Title: How to use readonly transaction · Issue #97 · googleapis/python-spanner-sqlalchemy
Description: I want to execute the query from a database in which my service account has no beginOrRollbackReadWriteTransaction permission, and I use this library with pandas via codes like here: from sqlalchemy import create_engine import pandas as ...
Open Graph Description: I want to execute the query from a database in which my service account has no beginOrRollbackReadWriteTransaction permission, and I use this library with pandas via codes like here: from sqlalchem...
X Description: I want to execute the query from a database in which my service account has no beginOrRollbackReadWriteTransaction permission, and I use this library with pandas via codes like here: from sqlalchem...
Opengraph URL: https://github.com/googleapis/python-spanner-sqlalchemy/issues/97
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to use readonly transaction","articleBody":"I want to execute the query from a database in which my service account has no `beginOrRollbackReadWriteTransaction` permission, and I use this library with pandas via codes like here:\r\n\r\n```python\r\nfrom sqlalchemy import create_engine\r\nimport pandas as pd\r\n\r\nengine = create_engine( \"spanner:///projects/project_id/instances/instance_id/databases/demo\")\r\npd.read_sql(\"SELECT * from plans\", engine)\r\n```\r\n\r\nAnd I got a message returns: \"Caller is missing IAM permission spanner.databases.beginOrRollbackReadWriteTransaction on resource projects/project_id/instances/instance_id/databases/demo\"\r\n\r\nSo how to use this library to execute some read-only SQL? Because I want only a limited number of people to have write access","author":{"url":"https://github.com/wusendong","@type":"Person","name":"wusendong"},"datePublished":"2021-07-16T06:06:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/97/python-spanner-sqlalchemy/issues/97"}
| 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:56aa931a-f58f-6246-8554-39b9c63be51b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3CA:4C357:2731B2A:3620076:6A4F02D2 |
| html-safe-nonce | 0ada7819975de567f1dd969d5e52b4d6a6e5cd5dd5694b71d8521687fd77b61d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0NBOjRDMzU3OjI3MzFCMkE6MzYyMDA3Njo2QTRGMDJEMiIsInZpc2l0b3JfaWQiOiI1MzkzNjEwMjQxNTI2MzQwNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 77ec279c9c99b64e2a12870956cbd33a2f619f8b9f0096b6c7b669a6513a4d5d |
| hovercard-subject-tag | issue:945974929 |
| 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/python-spanner-sqlalchemy/97/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a7b1ef1907c190fe0ceae1b7a26674631d61c4761a6aa03c5a0b9774c452d82/googleapis/python-spanner-sqlalchemy/issues/97 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a7b1ef1907c190fe0ceae1b7a26674631d61c4761a6aa03c5a0b9774c452d82/googleapis/python-spanner-sqlalchemy/issues/97 |
| og:image:alt | I want to execute the query from a database in which my service account has no beginOrRollbackReadWriteTransaction permission, and I use this library with pandas via codes like here: from sqlalchem... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wusendong |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-spanner-sqlalchemy git https://github.com/googleapis/python-spanner-sqlalchemy.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 335511641 |
| octolytics-dimension-repository_nwo | googleapis/python-spanner-sqlalchemy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 335511641 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-spanner-sqlalchemy |
| 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 | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width