You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.20.0importpydanticfromtypingimportOptionalclassAuthor(pydantic.BaseModel):
id: Anyname: Anybio: Optional[Any]
If support mysql !
# Code generated by sqlc. DO NOT EDIT.# versions:# sqlc v1.20.0importpydanticfromtypingimportOptionalclassAuthor(pydantic.BaseModel):
id: intname: strbio: Optional[str]
The text was updated successfully, but these errors were encountered:
zztkm
added a commit
to zztkm/sqlc-gen-python
that referenced
this issue
Oct 24, 2023
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:
If support mysql !
The text was updated successfully, but these errors were encountered: