mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
Database() now accepts connections created with the Python 3.12+ autocommit=True option. The library manages transactions itself using explicit BEGIN/COMMIT/ROLLBACK and savepoint statements, all guarded by conn.in_transaction, so it behaves identically in driver-level autocommit mode - the entire test suite passes under pytest --sqlite-autocommit with no further changes. autocommit=False connections are still rejected with TransactionError: in that mode the driver holds an implicit transaction open at all times, so explicit BEGIN fails and PRAGMA journal_mode cannot run. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PFkrS2nuP8mo1jmT594VCd |
||
|---|---|---|
| .. | ||
| _static/js | ||
| _templates | ||
| .gitignore | ||
| changelog.rst | ||
| cli-reference.rst | ||
| cli.rst | ||
| codespell-ignore-words.txt | ||
| conf.py | ||
| contributing.rst | ||
| index.rst | ||
| installation.rst | ||
| Makefile | ||
| migrations.rst | ||
| plugins.rst | ||
| python-api.rst | ||
| reference.rst | ||
| tutorial.ipynb | ||
| upgrading.rst | ||