First Check
Commit to Help
Example Code
random_user = select(User).order_by('?').limit(1)
Description
Is there a way to get a random record and/or order a query randomly, like an equivalent to Django .order_by('?') or to SQLalchemy .order_by(func.rand()) for MySQL?
Operating System
Linux
Operating System Details
No response
SQLModel Version
0.0.6
Python Version
3.9
Additional Context
No response
First Check
Commit to Help
Example Code
Description
Is there a way to get a random record and/or order a query randomly, like an equivalent to Django
.order_by('?')or to SQLalchemy.order_by(func.rand())for MySQL?Operating System
Linux
Operating System Details
No response
SQLModel Version
0.0.6
Python Version
3.9
Additional Context
No response