18 May
2021
18 May
'21
9:33 a.m.
On Tue, May 18, 2021 at 9:12 AM Stéfane Fermigier
On Fri, Apr 23, 2021 at 7:18 PM Tin Tvrtković
wrote: Dear typing-sig,
I've noticed recently that there is practically no support for type-safe ORM/ODM projections in the broader Python ecosystem.
I was under the impression that SQLAlchemy is moving in this direction with the 1.4 release:
https://docs.sqlalchemy.org/en/14/orm/mapping_styles.html#declarative-mappin...
Why not: https://github.com/adsharma/dataclasses-sql/blob/master/tests/test_decorator... @dataclass @sql class Car: brand: str = field(metadata={"key": True}) model: str = field(metadata={"key": True}) mileage: float This is also built on top of sqlalchemy. -Arun