FK Distribution Strategies
By default, SqlProof picks parent rows uniformly when generating FK references. Distribution strategies let you simulate realistic skew or adversarial boundary cases.
Built-In Strategies
Section titled “Built-In Strategies”| Strategy | Behavior |
|---|---|
uniform | Each parent row has equal probability |
zipf | Early parents are referenced more often |
adversarial | Only first, middle, and last parents are used |
single | All children point to one parent |
Custom Strategy
Section titled “Custom Strategy”The callable returns a strategy, not a value, so Hypothesis can still shrink counterexamples.