-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Utilities for building lookup tables #44
Labels
enhancement
New feature or request
Comments
|
I considered keyword arguments for this, but I am going with a dictionary instead - for two reasons:
|
simonw
added a commit
that referenced
this issue
Jul 23, 2019
simonw
added a commit
that referenced
this issue
Jul 24, 2019
* Add pk column if missing from insert * Implemented table.lookup(...)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While building https://github.com/dogsheep/healthkit-to-sqlite I found a need for a neat mechanism for easily building lookup tables - tables where each unique value in a column is replaced by a foreign key to a separate table.
csvs-to-sqlite currently creates those with its "extract" mechanism - but that's written as custom code against Pandas. I'd like to eventually replace Pandas with sqlite-utils there.
See also #42
The text was updated successfully, but these errors were encountered: