Open zmievsa opened 1 year ago
Hi @zmievsa, I think your question be answered here
Hi, @FaridFArab , i looked at your linked discussion but it offers no answers.
OK I will answer here; when you use class_registry, it serves as a mapping that stores all the models defined in your application. This registry keeps track of the models and helps SQLModel manage relationships and queries between these models effectively. Here is a step-by-step explanation of the purpose of class_registry in SQLModel:
First Check
Commit to Help
Example Code
Description
Why does sqlmodel define
class_registry
at the top level of its main.py? It seems to be related to SQLAlchemy but it does not seem to be used anywhere.Operating System
Linux, Windows, macOS, Other
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
3.11
Additional Context
No response