Closed lewish closed 4 years ago
Currently only one combination of keys in a table can be used for a uniqueness assertion.
Extending the API here will require a breaking change, or a new option, perhaps uniqueKeys rather than uniqueKey.
uniqueKeys
uniqueKey
config { assertions: { uniqueKeys: [ ["a", "b"], ["d", "e"] ] } }
That would allow specifying multiple combinations of fields that should each be unique.
see also: https://dataform.canny.io/feature-requests/p/add-uniqueness-assertions
We actually used to have this API, but it was removed before we implemented the feature. Adding it back sounds good...
Currently only one combination of keys in a table can be used for a uniqueness assertion.
Extending the API here will require a breaking change, or a new option, perhaps
uniqueKeys
rather thanuniqueKey
.That would allow specifying multiple combinations of fields that should each be unique.