Replies: 1 comment 1 reply
-
Why are you inheriting from If you could write a failing test / otherwise provide something a dev might be able to reproduce on their machine, that would go 90% to identifying and solving the problem. |
Beta Was this translation helpful? Give feedback.
1 reply
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
So I've have created class objects, queried them and everything works fine. I created a view in postgres and can query it in pgadmin (using sqlalchemy's execute text too) without any problems but when I do using the orm model it just return a copy of the first row N amount of times instead of the real data.
Here is an example of me querying data in pgadmin and using sqlmodel's orm
![Screenshot_20240301_215213](https://private-user-images.githubusercontent.com/24457993/309361834-2f718f3b-2a5c-43f6-855e-00dfbf2001f5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1MjI3MDAsIm5iZiI6MTcxOTUyMjQwMCwicGF0aCI6Ii8yNDQ1Nzk5My8zMDkzNjE4MzQtMmY3MThmM2ItMmE1Yy00M2Y2LTg1NWUtMDBkZmJmMjAwMWY1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI3VDIxMDY0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNmZjYyNDAxMTRhZjg0NmUxZmRhY2VlN2I3ZTBkZThiYmQzZDVkNTJhYTE5ZGI4YTNjY2EwMjc1MDAxOTdlZDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.F_Ql354_iVRje0Y0Mo8ZrxbZY5IpFuuEA4X0SY3tlOM)
Operating System
Linux
Operating System Details
Manjaro linux, postgres 15.3
SQLModel Version
0.0.16
Python Version
3.11
Additional Context
I open to any ideas how to circumvent this. My data is normalised so I can't really do without a view
Beta Was this translation helpful? Give feedback.
All reactions