custom statement constraint

Hi How do I check for the constraint defined in the custom statement. Like the one defined here https://discord.com/channels/711271361523351632/1071850815872040961/1071883244410253433 Any suggestions and tips would be great. Thanks for your help. -Sriky
9 Replies
ZachDaniel
ZachDaniel3y ago
what do you mean "check for the constraint"? You mean make sure that there is a custom error when that constraint is triggered?
sriky27
sriky27OP3y ago
yes Custom error when constraint is triggered
ZachDaniel
ZachDaniel3y ago
gotcha, so you'd also have to add custom_index_names (if I recall correctly, that is what it is called)
sriky27
sriky27OP3y ago
ok let me check that. Thanks for the pointer :).
ZachDaniel
ZachDaniel3y ago
I think that name is wrong, lemme see if I can find it
sriky27
sriky27OP3y ago
ok
ZachDaniel
ZachDaniel3y ago
its unique_index_names or exclusion_constraint_names they do the same thing really, but are separate to be informative
ZachDaniel
ZachDaniel3y ago
Ash HQ
DSL Section: ash_postgres > AshPostgres > postgres
View the documentation for DSL Section: ash_postgres > AshPostgres > postgres on Ash HQ.
sriky27
sriky27OP3y ago
Thanks a lot.

Did you find this page helpful?