Replies: 1 comment
-
Turns out this approach doesn't work because of how operators work in this case. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm attempting to build a table for bids and would like to enforce that new bids for the same auction are higher and more recent than other bids for the same auction. This is possible in Postgres using an
EXCLUDE
constraint, but I can't find any way of representing this usingsea-query
. I thoughtTableCreateStatement.extra()
might work, but it places the constraint outside of the table definition.Is there any way to add this constraint using
sea-query
or do I need to fall back to raw SQL?Current table def for reference
And the constraint I'm attempting to add is
Beta Was this translation helpful? Give feedback.
All reactions