Skip to content

Commit

Permalink
Link docs to sqlite-utils-fast-fks
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Aug 18, 2023
1 parent 7c1618e commit 98cd11a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/python-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,8 @@ The SQLite ``ALTER TABLE`` statement doesn't have the ability to add foreign key

The ``add_foreign_key()`` method here is a convenient wrapper around :ref:`table.transform() <python_api_transform>`.

It's also possible to add foreign keys by directly updating the `sqlite_master` table. The `sqlite-utils-fast-fks <https://github.com/simonw/sqlite-utils-fast-fks>`__ plugin implements this pattern, using code that was included with ``sqlite-utils`` prior to version 3.35.

Here's an example of this mechanism in action:

.. code-block:: python
Expand Down

0 comments on commit 98cd11a

Please sign in to comment.