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_search
function usespgroonga
under the hood to perform a search overaccounts
table, and returns atable
, i.e. a list ofrow
objects from it. Not sure if the internal mechanics of this function matter very much.In python code, I have
Account
class that corresponds to theaccounts
table. 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