Skip to content

Commit 98cd11a

Browse files
authored
Link docs to sqlite-utils-fast-fks
1 parent 7c1618e commit 98cd11a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/python-api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,8 @@ The SQLite ``ALTER TABLE`` statement doesn't have the ability to add foreign key
12831283

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

1286+
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.
1287+
12861288
Here's an example of this mechanism in action:
12871289

12881290
.. code-block:: python

0 commit comments

Comments
 (0)