Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
5767 Visualizzazioni

Hi ! I have created a stored proecedure in postgreSQL and i would like to call it in my python code. Someone could help?

Avatar
Abbandona
Risposta migliore


Hello,
You can write as following :

self._cr.execute("select * from procudure_name(%s);"%(value))


Avatar
Abbandona
Risposta migliore

¿Can you translate the stored procedure to ORM? Call stored procedure is not the best solution.

But if not, you can make a get request to external service

Avatar
Abbandona