How do I work with Postgres stored functions? #960
Unanswered
betterthanever2
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
In the example code above,
perform_searchfunction usespgroongaunder the hood to perform a search overaccountstable, and returns atable, i.e. a list ofrowobjects from it. Not sure if the internal mechanics of this function matter very much.In python code, I have
Accountclass that corresponds to theaccountstable. When I query it withselect, data gets coverted as it should.But I'm not sure how to achieve the same when calling a stored function. How do I convert result retrieved via a stored function call into a python object?
Operating System
Linux, Windows
Operating System Details
No response
SQLModel Version
0.0.17
Python Version
3.11.9
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions