تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5768 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة


Hello,
You can write as following :

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


الصورة الرمزية
إهمال
أفضل إجابة

¿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

الصورة الرمزية
إهمال