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

How do I use this with DeclarativeBase base class? #42

Open
tjni opened this issue Sep 12, 2024 · 0 comments
Open

How do I use this with DeclarativeBase base class? #42

tjni opened this issue Sep 12, 2024 · 0 comments

Comments

@tjni
Copy link

tjni commented Sep 12, 2024

Thank you for this library! I'm using it and exploring how to add better type safety. In SQLAlchemy, the recommendation is to switch from calling declarative_base() to inheriting from DeclarativeBase, and all model classes inherit from that type. Can you help me understand how to combine this with sqlservice, which has its own ModelBase base class?

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

No branches or pull requests

1 participant