sqlite-utils/sqlite_utils
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 Now you just 'from sqlite_utils import Database' 2018-07-30 20:30:23 -07:00
cli.py Option to ignore inserts if primary key exists already 2019-05-28 21:15:57 -07:00
db.py Option to ignore inserts if primary key exists already 2019-05-28 21:15:57 -07:00