We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Like add-foreign-key but can do multiple foreign keys at once. Inspired by https://github.com/simonw/calands-datasette/blob/99de39dd80a906f5c1f16724467b0cd55ba4ef36/build.sh which does this:
add-foreign-key
sqlite-utils add-foreign-key calands.db units_with_maps ACCESS_TYP sqlite-utils add-foreign-key calands.db units_with_maps AGNCY_NAME sqlite-utils add-foreign-key calands.db units_with_maps AGNCY_LEV sqlite-utils add-foreign-key calands.db units_with_maps AGNCY_TYP sqlite-utils add-foreign-key calands.db units_with_maps LAYER sqlite-utils add-foreign-key calands.db units_with_maps MNG_AGENCY sqlite-utils add-foreign-key calands.db units_with_maps MNG_AG_LEV sqlite-utils add-foreign-key calands.db units_with_maps MNG_AG_TYP sqlite-utils add-foreign-key calands.db units_with_maps COUNTY sqlite-utils add-foreign-key calands.db units_with_maps DES_TP
The text was updated successfully, but these errors were encountered:
This can accept four arguments: table, column, other_table, other_column:
sqlite-utils add-foreign-keys calands.db \ units_with_maps ACCESS_TYP ACCESS_TYP id \ units_with_maps AGNCY_NAME AGNCY_NAME id \ units_with_maps AGNCY_LEV AGNCY_LEV id
Sorry, something went wrong.
It will call this method:
sqlite-utils/sqlite_utils/db.py
Lines 405 to 411 in 367082e
3cc1944
Release 2.19
ef88298
Refs #112, #157, #160
No branches or pull requests
Like
add-foreign-key
but can do multiple foreign keys at once. Inspired by https://github.com/simonw/calands-datasette/blob/99de39dd80a906f5c1f16724467b0cd55ba4ef36/build.sh which does this:The text was updated successfully, but these errors were encountered: