Kristoffer Dalby f6276ab9d2 fix postgres constraints, add postgres testing
This commit fixes the constraint syntax so it is both valid for
sqlite and postgres.

To validate this, I've added a new postgres testing library and a
helper that will spin up local postgres, setup a db and use it in
the constraints tests. This should also help testing db stuff in
the future.

postgres has been added to the nix dev shell and is now required
for running the unit tests.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-11-23 21:14:55 +01:00
..
2024-11-22 15:54:58 +00:00
2024-10-02 09:06:09 +02:00
2024-07-22 08:56:00 +02:00
2024-11-23 21:14:55 +01:00
2024-11-23 21:14:55 +01:00
2024-11-23 21:14:55 +01:00