Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sqlalchemy introspection #226

Closed
wants to merge 8 commits into from

Conversation

daler-sz
Copy link
Member

Sqlalchemy introspection with basic columns. Relationships are not tested yet

pyproject.toml Show resolved Hide resolved

def _get_sqlalchemy_type_for_column(column, type_hints):
try:
return type_hints[column.name].__args__[0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if type will be Annotated[Mapped[int], 'meta']? I think we should return to idea of keeping Mapped

tests/unit/model_tools/introspection/test_sqlalchemy.py Outdated Show resolved Hide resolved
@daler-sz daler-sz marked this pull request as draft January 28, 2024 17:39
@daler-sz daler-sz changed the title Sqlalchemy introspection workaround Sqlalchemy introspection Feb 9, 2024
@daler-sz daler-sz closed this Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants