sqlite-utils/sqlite_utils
Ignazio De Santis 04701e5bca Raise ValueError instead of assert for conflicting insert_all() options
insert_all() validated the pk=/hash_id= and ignore=/replace= argument
conflicts with bare assert statements. Asserts are stripped under
`python -O`, so the validation silently disappears in optimized
deployments, and when they do fire they raise AssertionError rather than
the ValueError used for the neighbouring pk validation. Replace both
with explicit ValueError raises and add regression tests.
2026-06-10 14:55:58 +08:00
..
__init__.py prepare_connection plugin hook 2023-07-22 15:59:08 -07:00
__main__.py Support 'python -m sqlite_utils', closes #368 2022-01-08 18:33:22 -08:00
cli.py Test against Python 3.15-dev, bump ty and Black (#738) 2026-05-17 16:52:48 -07:00
db.py Raise ValueError instead of assert for conflicting insert_all() options 2026-06-10 14:55:58 +08:00
hookspecs.py More type annotations (#697) 2025-12-16 22:11:47 -08:00
plugins.py More type annotations (#697) 2025-12-16 22:11:47 -08:00
py.typed py.typed file so mypy picks up the types, closes #331 2021-11-14 15:21:04 -08:00
recipes.py More type annotations (#697) 2025-12-16 22:11:47 -08:00
utils.py Test against Python 3.15-dev, bump ty and Black (#738) 2026-05-17 16:52:48 -07:00