sqlite-utils/docs
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
..
.gitignore Initial project layout + database table creation tools 2018-07-28 06:46:17 -07:00
changelog.rst Release 1.0.1 2019-05-27 17:50:28 -07:00
cli.rst Ability to add a column that is a foreign key reference 2019-05-28 21:54:43 -07:00
conf.py Bump copyright year 2019-02-22 22:08:14 -08:00
index.rst Re-arranged documentation index page 2019-01-24 21:23:24 -08:00
Makefile Initial project layout + database table creation tools 2018-07-28 06:46:17 -07:00
python-api.rst Ability to add a column that is a foreign key reference 2019-05-28 21:54:43 -07:00