Title: mysql type support · Issue #24 · sqlc-dev/sqlc-gen-python · GitHub
Open Graph Title: mysql type support · Issue #24 · sqlc-dev/sqlc-gen-python
X Title: mysql type support · Issue #24 · sqlc-dev/sqlc-gen-python
Description: I would like to add mysql as a supported target to give type hints other than Any to the generated models. The following is an example with a pydantic model. No mysql support: # Code generated by sqlc. DO NOT EDIT. # versions: # sqlc v1....
Open Graph Description: I would like to add mysql as a supported target to give type hints other than Any to the generated models. The following is an example with a pydantic model. No mysql support: # Code generated by s...
X Description: I would like to add mysql as a supported target to give type hints other than Any to the generated models. The following is an example with a pydantic model. No mysql support: # Code generated by s...
Opengraph URL: https://github.com/sqlc-dev/sqlc-gen-python/issues/24
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mysql type support","articleBody":"I would like to add mysql as a supported target to give type hints other than Any to the generated models.\r\n \r\nThe following is an example with a pydantic model.\r\n\r\nNo mysql support:\r\n```python\r\n# Code generated by sqlc. DO NOT EDIT.\r\n# versions:\r\n# sqlc v1.20.0\r\nimport pydantic\r\nfrom typing import Optional\r\n\r\n\r\nclass Author(pydantic.BaseModel):\r\n id: Any\r\n name: Any\r\n bio: Optional[Any]\r\n```\r\n\r\nIf support mysql !\r\n```python\r\n# Code generated by sqlc. DO NOT EDIT.\r\n# versions:\r\n# sqlc v1.20.0\r\nimport pydantic\r\nfrom typing import Optional\r\n\r\n\r\nclass Author(pydantic.BaseModel):\r\n id: int\r\n name: str\r\n bio: Optional[str]\r\n```\r\n\r\n","author":{"url":"https://github.com/zztkm","@type":"Person","name":"zztkm"},"datePublished":"2023-10-24T09:22:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/24/sqlc-gen-python/issues/24"}
| 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:4c1c80c5-f560-10f9-8729-3e655066cb74 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A11C:2835D5:10DA05E:168777C:697057C2 |
| html-safe-nonce | 88eee525b55322f98272eb48ec27c73de3263c23a6cb6367d8d6fd0e92665cd1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTFDOjI4MzVENToxMERBMDVFOjE2ODc3N0M6Njk3MDU3QzIiLCJ2aXNpdG9yX2lkIjoiMjAzMjkzOTY2MzcxMzM5MjU3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ad010a58d0705b38349859576bb9fb3e6c7b1c637ee84c7cf264566ca6eae07d |
| hovercard-subject-tag | issue:1958849028 |
| 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/sqlc-dev/sqlc-gen-python/24/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f4b965daeafcfd1a43d2fe973ac5c1238fb0f9f95fd44ca37e303865a0e0f7e4/sqlc-dev/sqlc-gen-python/issues/24 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f4b965daeafcfd1a43d2fe973ac5c1238fb0f9f95fd44ca37e303865a0e0f7e4/sqlc-dev/sqlc-gen-python/issues/24 |
| og:image:alt | I would like to add mysql as a supported target to give type hints other than Any to the generated models. The following is an example with a pydantic model. No mysql support: # Code generated by s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zztkm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/sqlc-dev/sqlc-gen-python git https://github.com/sqlc-dev/sqlc-gen-python.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 548530161 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc-gen-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 548530161 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc-gen-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 | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width