Title: How to use the "IN" clause using the select statement · Issue #353 · fastapi/sqlmodel · GitHub
Open Graph Title: How to use the "IN" clause using the select statement · Issue #353 · fastapi/sqlmodel
X Title: How to use the "IN" clause using the select statement · Issue #353 · fastapi/sqlmodel
Description: First Check I added a very descriptive title to this issue. I used the GitHub search to find a similar issue and didn't find it. I searched the SQLModel documentation, with the integrated search. I already searched in Google "How to X in...
Open Graph Description: First Check I added a very descriptive title to this issue. I used the GitHub search to find a similar issue and didn't find it. I searched the SQLModel documentation, with the integrated search. I...
X Description: First Check I added a very descriptive title to this issue. I used the GitHub search to find a similar issue and didn't find it. I searched the SQLModel documentation, with the integrated searc...
Opengraph URL: https://github.com/fastapi/sqlmodel/issues/353
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to use the \"IN\" clause using the select statement","articleBody":"### First Check\n\n- [X] I added a very descriptive title to this issue.\n- [X] I used the GitHub search to find a similar issue and didn't find it.\n- [X] I searched the SQLModel documentation, with the integrated search.\n- [X] I already searched in Google \"How to X in SQLModel\" and didn't find any information.\n- [X] I already read and followed all the tutorial in the docs and didn't find an answer.\n- [X] I already checked if it is not related to SQLModel but to [Pydantic](https://github.com/samuelcolvin/pydantic).\n- [X] I already checked if it is not related to SQLModel but to [SQLAlchemy](https://github.com/sqlalchemy/sqlalchemy).\n\n### Commit to Help\n\n- [ ] I commit to help with one of those options 👆\n\n### Example Code\n\n```python\n# Something similar to this from sqlalchemy\r\n\r\nsession.execute(\r\n select(\r\n [MyUserTable.c.id, MyUserTable.c.name], \r\n MyUserTable.c.id.in_((123, 456))\r\n )\r\n).fetchall()\n```\n\n\n### Description\n\nTrying to use the \"IN\" clause in the sqlmodel, where I could filter out based on a list of values\n\n### Operating System\n\nLinux\n\n### Operating System Details\n\n_No response_\n\n### SQLModel Version\n\n0.0.6\n\n### Python Version\n\n3.10.4\n\n### Additional Context\n\n_No response_","author":{"url":"https://github.com/Praveenstein","@type":"Person","name":"Praveenstein"},"datePublished":"2022-05-30T09:35:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/353/sqlmodel/issues/353"}
| 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:803435ba-88cd-a572-4993-1406be6c67d6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E93A:1BE754:7BDD53:AFCE2C:6A6309E5 |
| html-safe-nonce | 7cd72273689e7ea29a83d625e8a7a1c521bc068af3513fe13c3941506978917a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTNBOjFCRTc1NDo3QkRENTM6QUZDRTJDOjZBNjMwOUU1IiwidmlzaXRvcl9pZCI6IjY3MTM5MzU2NDM4ODE0NDE3NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2dba5688b0e7c6f8202a981175fe0c9128e7f95469692e9214e62e117a2de0b0 |
| hovercard-subject-tag | issue:1252463129 |
| 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/353/issue_layout |
| twitter:image | https://opengraph.githubassets.com/51022fa9f1a25b02990b92884c7d4ef6f40db8a17cf808c35b5225fdd792db27/fastapi/sqlmodel/issues/353 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/51022fa9f1a25b02990b92884c7d4ef6f40db8a17cf808c35b5225fdd792db27/fastapi/sqlmodel/issues/353 |
| og:image:alt | First Check I added a very descriptive title to this issue. I used the GitHub search to find a similar issue and didn't find it. I searched the SQLModel documentation, with the integrated search. I... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Praveenstein |
| hostname | github.com |
| expected-hostname | github.com |
| None | b48e7bf0b1945d51f303503b057abf666ce74c3efbe107b413db2bb921c3f012 |
| 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 | 9370f37042c29822d6ba7e3f670f0036a0155b21 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width