0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00
django/docs/topics/db
Aymeric Augustin 83a416f5e7 Made atomic usable when autocommit is off.
Thanks Anssi for haggling until I implemented this.

This change alleviates the need for atomic_if_autocommit. When
autocommit is disabled for a database, atomic will simply create and
release savepoints, and not commit anything. This honors the contract of
not doing any transaction management.

This change also makes the hack to allow using atomic within the legacy
transaction management redundant.

None of the above will work with SQLite, because of a flaw in the design
of the sqlite3 library. This is a known limitation that cannot be lifted
without unacceptable side effects eg. triggering arbitrary commits.
2013-03-13 15:17:40 +01:00
..
examples Removed unnecessary imports. 2013-03-03 16:07:38 +01:00
aggregation.txt Mention backward relationships in aggregate docs. 2013-02-12 09:36:29 -03:00
index.txt
managers.txt Fixed #15363 -- Renamed and normalized to get_queryset the methods that return a QuerySet. 2013-03-08 10:11:45 -05:00
models.txt Removed django.contrib.localflavor. 2012-12-29 21:59:06 +01:00
multi-db.txt Fixed #15363 -- Renamed and normalized to get_queryset the methods that return a QuerySet. 2013-03-08 10:11:45 -05:00
optimization.txt
queries.txt Fixed #19926 -- Fixed a link to code example in queries docs 2013-02-27 21:30:54 +01:00
sql.txt Enabled database-level autocommit for all backends. 2013-03-11 14:48:54 +01:00
tablespaces.txt Removed versionadded/changed annotations dating back to 1.4. 2012-12-29 21:59:08 +01:00
transactions.txt Made atomic usable when autocommit is off. 2013-03-13 15:17:40 +01:00