Title: Add an overload to the `exec` method with `_Executable` statement for update and delete statements · Issue #909 · fastapi/sqlmodel · GitHub
Open Graph Title: Add an overload to the `exec` method with `_Executable` statement for update and delete statements · Issue #909 · fastapi/sqlmodel
X Title: Add an overload to the `exec` method with `_Executable` statement for update and delete statements · Issue #909 · fastapi/sqlmodel
Description: I think we should add an overload to the exec method to still have the possibility of passing an _Executable statement: @overload def exec( self, statement: _Executable, *, params: Optional[Union[Mapping[str, Any], Sequence[Mapping[str, ...
Open Graph Description: I think we should add an overload to the exec method to still have the possibility of passing an _Executable statement: @overload def exec( self, statement: _Executable, *, params: Optional[Union[M...
X Description: I think we should add an overload to the exec method to still have the possibility of passing an _Executable statement: @overload def exec( self, statement: _Executable, *, params: Optional[Union[M...
Opengraph URL: https://github.com/fastapi/sqlmodel/issues/909
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add an overload to the `exec` method with `_Executable` statement for update and delete statements","articleBody":"I think we should add an overload to the `exec` method to still have the possibility of passing an `_Executable` statement:\r\n\r\n```\r\n @overload\r\n def exec(\r\n self,\r\n statement: _Executable,\r\n *,\r\n params: Optional[Union[Mapping[str, Any], Sequence[Mapping[str, Any]]]] = None,\r\n execution_options: Mapping[str, Any] = util.EMPTY_DICT,\r\n bind_arguments: Optional[Dict[str, Any]] = None,\r\n _parent_execute_state: Optional[Any] = None,\r\n _add_event: Optional[Any] = None,\r\n ) -> TupleResult[_TSelectParam]:\r\n ...\r\n\r\n```\r\n\r\n_Originally posted by @joachimhuet in https://github.com/tiangolo/sqlmodel/discussions/831#discussioncomment-9234181_","author":{"url":"https://github.com/joachimhuet","@type":"Person","name":"joachimhuet"},"datePublished":"2024-04-26T19:00:18Z","url":"https://github.com/fastapi/sqlmodel/issues/909"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:0dbd93e9-4310-4fda-069b-ebb88ea6ea5e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D7B2:3F0C:23D0B0:2E887D:6AFE4883 |
| html-safe-nonce | ff327d00483163510a69f61c5092299304a3b9b2266c3109138a6ab14b66af40 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0IyOjNGMEM6MjNEMEIwOjJFODg3RDo2QUZFNDg4MyIsInZpc2l0b3JfaWQiOiIzMjQwNzkwNzMzNDU1NTA5NjM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8595a6c2342d742037f3087d5461b4b686bde993d3cd79e95cd4d75bf1e51ef7 |
| hovercard-subject-tag | issue:2266346114 |
| 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/fastapi/sqlmodel/909/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3ea8b789a18e7d065c73a1f5f895dbb67788fda86cc73eab880d9cf9170f1542/fastapi/sqlmodel/issues/909 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3ea8b789a18e7d065c73a1f5f895dbb67788fda86cc73eab880d9cf9170f1542/fastapi/sqlmodel/issues/909 |
| og:image:alt | I think we should add an overload to the exec method to still have the possibility of passing an _Executable statement: @overload def exec( self, statement: _Executable, *, params: Optional[Union[M... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joachimhuet |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1a5901e2377b0af2a0b303f9528678f1475d04b9219dca1e993344196eaa07c |
| turbo-cache-control | no-preview |
| go-import | github.com/fastapi/sqlmodel git https://github.com/fastapi/sqlmodel.git |
| octolytics-dimension-user_id | 156354296 |
| octolytics-dimension-user_login | fastapi |
| octolytics-dimension-repository_id | 399495186 |
| octolytics-dimension-repository_nwo | fastapi/sqlmodel |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 399495186 |
| octolytics-dimension-repository_network_root_nwo | fastapi/sqlmodel |
| 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 | ce393ea11ad276623b946bc9663d3e7d6f564275 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width