|
|
|
|
|
by jumski
213 days ago
|
|
Looks really well thought out and I will be testing it for sure! I'm wondering how I would be able to regression-test functions in my project (pgflow [0]) - it tracks a graph of state machines modeled in few tables. State is mutated only by calling few exposed SQL functions (task queue worker does it). Given I can't enforce everything I need with check constraints and I try to avoid triggers if possible, I opted for only using exposed SQL API [1] for setting up state in my pgTAP tests. It is imperative and harder to maintain, like scripts you described in the article, but really my only option, as I want to have maximum confidence level. Does RegreSQL support some kind of init scripts or I would need to wire it myself and just run RegreSQL after the proper state is set? Would lose the "run once and get report on everything" benefit then :-( [0] https://pgflow.dev/
[1] https://github.com/pgflow-dev/pgflow/blob/main/pkgs/core/sup... |
|
Plus I have whole set of other requirements where RegreSQL suddenly seems to be a good solution.
And without sounding cliche - Thank you for the comment! This is exactly why I forced myself to go public and get this level of feedback.