Make it recognize not null constraints and set type to Unknown when the value is not recognized.

Note column not null constraints where not stored in pg_constraint before postgresl 18
This commit is contained in:
eelke 2025-12-10 18:54:32 +01:00
parent cf7c0699fe
commit c1a5ac1aad
4 changed files with 24 additions and 2 deletions

View file

@ -11,12 +11,14 @@
#include <vector>
enum class ConstraintType {
Unknown, // not recognized, new???
PrimaryKey, // p
ForeignKey, // f
Unique, // u
Check, // c
ConstraintTrigger, // t
ExclusionConstraint, // x
NotNull, // n
};
void operator<<(ConstraintType &s, const Pgsql::Value &v);