sqlite-utils/sqlite_utils
Claude 798149b816
Add --update-incoming-fks CLI flag for transform command
When renaming columns that are referenced by foreign keys in other
tables, the --update-incoming-fks flag will automatically update
those FK constraints.

Example:
    sqlite-utils transform mydb.db authors \
        --rename id author_pk \
        --update-incoming-fks

This will rename the 'id' column to 'author_pk' and also update any
foreign key constraints in other tables (e.g., books.author_id)
that reference the renamed column.
2026-01-21 14:58:11 +00:00
..
__init__.py prepare_connection plugin hook 2023-07-22 15:59:08 -07:00
__main__.py Support 'python -m sqlite_utils', closes #368 2022-01-08 18:33:22 -08:00
cli.py Add --update-incoming-fks CLI flag for transform command 2026-01-21 14:58:11 +00:00
db.py Add self-referential FK support and additional tests 2026-01-21 14:56:06 +00:00
hookspecs.py More type annotations (#697) 2025-12-16 22:11:47 -08:00
plugins.py More type annotations (#697) 2025-12-16 22:11:47 -08:00
py.typed py.typed file so mypy picks up the types, closes #331 2021-11-14 15:21:04 -08:00
recipes.py More type annotations (#697) 2025-12-16 22:11:47 -08:00
utils.py More type annotations (#697) 2025-12-16 22:11:47 -08:00