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
{{ message }}
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
Is it possible to use SQLAlchemy mappers (or similar)? #238
Activity
[-]Is it possible to use SQLAlchemy mappers?[/-][+]Is it possible to use SQLAlchemy mappers (or similar)?[/+]artslob commentedon Oct 8, 2020
Try pydantic. Parsing list of db rows would be look like this:
Output:
Pydantic also allows to parse complicated and nested dictionaries to objects and supports type hinting (if you use IDE, eg PyCharm).
ikhomutov commentedon Jan 6, 2021
I can share my workaround for this. Hope this will be helpful.
Now you can convert your Record object into Note object
graingert commentedon Jan 11, 2021
sqlalchemy 1.4 supports the full ORM when used with asyncio: https://docs.sqlalchemy.org/en/14/orm/extensions/asyncio.html#synopsis-orm