sqlite-utils/tests
Simon Willison 50e2f94b58 Ability to add a column that is a foreign key reference
Python API:

    db["dogs"].add_column("species_id", fk="species")
    # or
    db["dogs"].add_column("species_id", fk="species", fk_col="ref")

CLI:

    $ sqlite-utils add-column mydb.db dogs species_id --fk species
    # or
    $ sqlite-utils add-column mydb.db dogs species_id --fk species --fk-col ref

Closes #16
2019-05-28 21:54:43 -07: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 Ability to add a column that is a foreign key reference 2019-05-28 21:54:43 -07:00
test_create.py Ability to add a column that is a foreign key reference 2019-05-28 21:54:43 -07: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