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
what do you mean "check for the constraint"? You mean make sure that there is a custom error when that constraint is triggered?
yes
Custom error when constraint is triggered
gotcha, so you'd also have to add
custom_index_names
(if I recall correctly, that is what it is called)ok let me check that. Thanks for the pointer :).
I think that name is wrong, lemme see if I can find it
ok
its
unique_index_names
or exclusion_constraint_names
they do the same thing really, but are separate to be informativeAsh HQ
DSL Section: ash_postgres > AshPostgres > postgres
View the documentation for DSL Section: ash_postgres > AshPostgres > postgres on Ash HQ.
Thanks a lot.