-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composite key #1
Comments
This doesn't seem impossibly difficult to add... it could work by allowing users to specify the
Part of the work would be teaching the CSV loading function to work with compound keys and create the internal ID as a tuple of values: Lines 10 to 15 in 825a28c
The |
Thanks Simon, I must admit that I was forgetting that our CSVs do typically have a URI per row too which is unique, so we could use that for purposes of getting a diff. May still be useful for others though. For |
Seconding this, I'd find this very useful. As best as I can find, there are no other similar libraries that allow for composite keys, but I already use and am very happy with this package. |
Hi @simonw I've made progress on this feature and would like to share. Would you grant me write access? |
@puddleoasis why not submit a PR? |
This looks like it will be really useful, thanks.
When we were working on CSV Schema Language we found it necessary to allow uniqueness to be defined over a composite set of columns (the unique column rule in the schema). I can see from the code structure that this wouldn't necessarily be entirely straightforward here, but I think it would be useful.
The text was updated successfully, but these errors were encountered: