Open hitman-gdg opened 3 years ago
Having same issue, did you find any alternative with base SQLAlchemy or something?
Did you find a solution?
I think that we can use the new sa_type
now, in order to achieve this behaviour.
any news how to use sa_type for deferred loading?
@tiangolo can you provide some information if / how it possible to leverage SQLalchemy's deferred loading mechanism in SQLModel ?
I also could not find a way to make deferred loading on column level (not on query level) work. sa_column setting is not recognized by SQLModel and still loads the deferred column
blob: bytes | None = Field(default=None, sa_column=deferred(Column(LargeBinary)))
First Check
Commit to Help
Example Code
Description
The ability to be able to included deferred sql columns
Wanted Solution
I would like to be able to work with sqlalchemy deferred columns, so that certain columns are not loaded by default as part of a model
Wanted Code
Alternatives
No response
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.4
Python Version
3.9.6
Additional Context
No response