News for hackers. Stuff that matters.
Re:A Language Server for Postgres by t1mmen on Wednesday February 19, 2025 @08:59PM (#43110206)
https://github.com/t1mmen/srtd might help here. The general idea is to define functions/policies/etc as «SQL templates», your source of truth. The templates built into Supabase migrations.

While developing, srtd can hot/live reload your templates into the local db when changed.

I built this to scratch my own itch, and it’s been working VERY well for us. Huge DX benefits, and it’s made code reviews a LOT easier, since the reviewer can focus on what’s actually changed.

Re:A Language Server for Postgres by tmountain on Friday February 21, 2025 @08:52AM (#43127397)
This looks pretty damn good. Thank you!
Re:A Language Server for Postgres by tmountain on Friday February 21, 2025 @11:08AM (#43129145)
Just tried it out. This is exactly what I was looking for. Very nice work!
Re:A Language Server for Postgres by t1mmen on Friday February 21, 2025 @05:45PM (#43133997)
Thank you, I’m glad to hear it works well for others too!

If you come across issues or can think of anything that would improve it, please let me know :)