Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for postgres stored procedures #440

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AndrewJackson2020
Copy link

This PR adds support for stored procedures in the provider. Since stored procedures are very similar to functions i based much of this implementation off of the preexisting code for functions.

Also I changed the shebang in some of the bash files so that it works on operating systems where bash is not located at /bin/bash (NixOS for example). I think this should not cause issues on operating systems where bash is located there but if it does cause any issues I am happy to revert that.

Please let me know if you see any issues and I will be happy to fix.

@rubentsirunyan
Copy link

I’ve tested this by creating, updating, and deleting procedures, and it worked perfectly!
Thanks @AndrewJackson2020 !

@cyrilgdn , it would be fantastic if the provider could support stored procedures like it supports functions.

@AndrewJackson2020
Copy link
Author

Yeah I mean it's fully unit tested so I would expect it to work, might be some edge cases that I missed though. Would be more than happy to document as well if there was any interest in merging. Unfortunately there has not been any commits to this project in around 6 months so I'm not super hopeful.

@cyrilgdn cyrilgdn force-pushed the main branch 3 times, most recently from f2c2e47 to dea1401 Compare September 8, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants