-
Maybe a bit of a silly question, but how do I do raw SQL queries when using Edgy models? I can't seem to find any examples or the right format to use. |
Beta Was this translation helpful? Give feedback.
Answered by
devkral
Oct 5, 2024
Replies: 2 comments 2 replies
-
@devkral ? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Apologies for only replying now, I have finally found the time to check and test. Thank you for taking the time to answer and update the documentation. Very clear and straightforward! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the database of a model or QuerySet to issue raw sqlalchemy queries.
For a simpler integration I made a PR with more documentation and a helper method (example is in the PR):
#188
The sqlalchemy query can be easily transformed in plain textual sql.