Skip to content
#

nix

Here are 1,084 public repositories matching this topic...

ihp
jeyj0
jeyj0 commented May 18, 2021

We are currently only able to validate that a single field is unique in its table. However, there are use-cases in which a pair or more of attributes should be unique inside the table. In SQL this can be expressed using a constraint such as:

ALTER TABLE recipes ADD CONSTRAINT recipes_unique_name_in_group UNIQUE (group_id, name);

It would be good if we had a function similar to `val

deckdeckgo

Improve this page

Add a description, image, and links to the nix topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the nix topic, visit your repo's landing page and select "manage topics."

Learn more