Using configure_mappers (for sqlalchemy-history) #727
Unanswered
Matthieu-LAURENT39
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
Hello,
I'm currently trying to use sqlalchemy-history with SQLModel.
I ported their example code to SQLModel, but there is a need to call
configure_mappers()
.I couldn't find it anywhere in SQLModel, and using the one from SQLAlchemy gives
AttributeError: registry
.Fully removing the
configure_mappers()
call causes the same AttributeError when creating the first Article.Am i missing something? What's the proper way to use sqlalchemy-history with SQLModel, if any?
Operating System
Linux
Operating System Details
No response
SQLModel Version
0.0.14
Python Version
Python 3.11.6
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions