mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-11-24 10:59:41 +01:00
parent
d2bcdc00c6
commit
70717dc0e1
2 changed files with 0 additions and 4 deletions
|
|
@ -1188,8 +1188,6 @@ See :ref:`cli_add_foreign_key`.
|
||||||
|
|
||||||
sqlite-utils add-foreign-key my.db books author_id authors id
|
sqlite-utils add-foreign-key my.db books author_id authors id
|
||||||
|
|
||||||
WARNING: Could corrupt your database! Back up your database file first.
|
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--ignore If foreign key already exists, do nothing
|
--ignore If foreign key already exists, do nothing
|
||||||
--load-extension TEXT Path to SQLite extension, with optional :entrypoint
|
--load-extension TEXT Path to SQLite extension, with optional :entrypoint
|
||||||
|
|
|
||||||
|
|
@ -491,8 +491,6 @@ def add_foreign_key(
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
sqlite-utils add-foreign-key my.db books author_id authors id
|
sqlite-utils add-foreign-key my.db books author_id authors id
|
||||||
|
|
||||||
WARNING: Could corrupt your database! Back up your database file first.
|
|
||||||
"""
|
"""
|
||||||
db = sqlite_utils.Database(path)
|
db = sqlite_utils.Database(path)
|
||||||
_load_extensions(db, load_extension)
|
_load_extensions(db, load_extension)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue