Deprecate primaryKey
in favour of primaryKeys
#1045
Replies: 4 comments
-
Hmmm isn't it more correct in the singular? Although the primary key for a table may be determined by multiple fields, there is only one primary key definition per table. Whereas many foreign key and unique key definitions can exist simultaneously in a given table, so the plural there makes sense. I'm less familiar with DB design so maybe I'm missing something? |
Beta Was this translation helpful? Give feedback.
-
I think I mentioned it a somewhere during the v2 work but I see it this way as it was designed after data base design:
In this terminology |
Beta Was this translation helpful? Give feedback.
-
Makes sense, but isn't |
Beta Was this translation helpful? Give feedback.
-
No, array of arrays https://datapackage.org/standard/table-schema/#uniqueKeys - so it's possible to define multiple unique combinations |
Beta Was this translation helpful? Give feedback.
-
For consistency, I think we should deprecate
primaryKey
in favour ofprimaryKeys
:I notice myself typing
primaryKeys
(plural), forgetting that is not a property of Table Schema.Beta Was this translation helpful? Give feedback.
All reactions