sqlite-utils/sqlite_utils
Simon Willison fd5b09f64b
Database as a context manager, fixed many pytest warnings
* Database can now work as a context manager
* Claude Code helped fix a ton of .close() warnings

https://gistpreview.github.io/?730f0c5dc38528a1dd0615f330bd5481

* New autouse fixture to help with test warnings

Refs https://github.com/simonw/sqlite-utils/issues/692#issuecomment-3644371889

* Fix all remaining resource warnings

https://gistpreview.github.io/?0bb8e869b82f6ff0db647de755182502

Closes #692
2025-12-11 16:56:12 -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 Database as a context manager, fixed many pytest warnings 2025-12-11 16:56:12 -08:00
db.py Database as a context manager, fixed many pytest warnings 2025-12-11 16:56:12 -08:00
hookspecs.py prepare_connection plugin hook 2023-07-22 15:59:08 -07:00
plugins.py More robust _called_from_test pattern 2023-07-22 16:21:27 -07:00
py.typed py.typed file so mypy picks up the types, closes #331 2021-11-14 15:21:04 -08:00
recipes.py Removed convert skip_false and --skip-false, closes #542 2025-11-23 15:40:28 -08:00
utils.py Database as a context manager, fixed many pytest warnings 2025-12-11 16:56:12 -08:00