3 ms·
There’s at least one PL/pgSQL linter out there. When I worked on a system that used a lot of postgres triggers and stored procedures we built a little mechani
by macNchz 3y ago
There’s at least one PL/pgSQL linter out there.
When I worked on a system that used a lot of postgres triggers and stored procedures we built a little mechanism on top of our existing database migration tool that would check a directory of plpgsql files and generate migrations when they were created or updated. It worked fine.
It wasn’t the most perfect developer workflow, and I was suspicious when I first encountered the way the software used all of the stored procedures, however I came to appreciate that we were able to be a bit freer with changes to the application code because of this semi-isolated layer that took care of some critical stuff right in the database.