dgilland / sqlservice

The missing SQLAlchemy ORM interface.
https://sqlservice.readthedocs.io
MIT License
179 stars 9 forks source link

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

Open tjni opened 2 months ago

tjni commented 2 months ago

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?