Wondering how to select data from stored function in postgresql DBMS by pypika?
Is there any function or at least possibility to run own query? For instance, select * from get_accounts(<account_id>)
Searched for these and didn't find any solved issue, didn't find querying from stored procedures/functions
If you want to achieve
select * from get_accounts(<account_id>)you can simply define the stored function call as aFunctionand add it to thefrom_clause. If youraccount_idis for instance 1 you can do: