Open wnortje opened 9 years ago
What is the advantage of this over the present system, aside from terseness?
The constraint means the combination of the named columns must be unique. I.e. in each of the named columns there may be non-unique entries as long as the combination remains unique.
With the present system you can only specify the unique constraint on a single column at a time, which will not allow any duplicates in any of the named columns.
I've thought about this.
I think the deftable
form should have an extra section :constraints
for specifying multi-column UNIQUE
constraints and possibly other extensions.
Please add support for multi-column constraints such as