sqlite-utils/tests
Simon Willison e1ca938aa1 table.add_foreign_key(column, other_table, other_column)
New mechanism for adding foreign key constraints to an existing SQLite
table.

SQLite ALTER TABLE does not support this out-of-the-box, so I instead
had to write some careful code that uses PRAGMA writable_schema = 1 to
directly modify the sqlite_master table.

Refs #2
2019-02-24 13:10:51 -08:00
..
__init__.py Initial project layout + database table creation tools 2018-07-28 06:46:17 -07:00
conftest.py Moved fixtures into conftest.py 2018-08-12 17:25:39 -07:00
test_black.py Revert "No need to skip black under Python 3.7 any more" 2019-01-24 19:08:52 -08:00
test_cli.py Black 2019-02-24 12:59:46 -08:00
test_create.py table.add_foreign_key(column, other_table, other_column) 2019-02-24 13:10:51 -08:00
test_enable_fts.py sqlite-utils optimize command, .optimize() and .detect_fts() table methods 2019-01-24 20:35:51 -08:00
test_introspect.py Added db[table].rows iterator 2019-02-21 21:29:50 -08:00
utils.py 'sqlite-utils add-column name type' command, closes #15 2019-02-24 12:04:33 -08:00