Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
6002 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź


Hello,
You can write as following :

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


Awatar
Odrzuć
Najlepsza odpowiedź

¿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

Awatar
Odrzuć