sqlite-utils/tests
Simon Willison 00c5a49a87 Option to ignore inserts if primary key exists already
Support for SQLite's INSERT OR IGNORE

In the API layer it looks like this:

    fresh_db["test"].insert({"id": 1, "bar": 3}, ignore=True)

For the CLI layer it looks like this:

    $ sqlite-utils insert data.db dogs dogs.json --ignore

Closes #21
2019-05-28 21:15:57 -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 Option to ignore inserts if primary key exists already 2019-05-28 21:15:57 -07:00
test_create.py Option to ignore inserts if primary key exists already 2019-05-28 21:15:57 -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