File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Interact with Data
24
24
CRUD Operations </interact-data/crud>
25
25
Specify a Query </interact-data/specify-a-query>
26
26
Perform Raw Queries </interact-data/raw-queries>
27
+ Transactions </interact-data/transactions>
27
28
28
29
In this section, you can learn how to use {+django-odm+} to interact with your
29
30
MongoDB data.
@@ -36,3 +37,6 @@ MongoDB data.
36
37
37
38
- :ref:`django-raw-queries`: Learn how to use MongoDB's aggregation pipeline syntax
38
39
or the PyMongo driver to query your data.
40
+
41
+ - :ref:`django-transactions`: Learn how to use {+framework+}'s transactions API
42
+ to run data operations within a transaction.
Original file line number Diff line number Diff line change
1
+ .. _django-transactions:
2
+
3
+ =========================
4
+ Transactions and Sessions
5
+ =========================
6
+
7
+ .. facet::
8
+ :name: genre
9
+ :values: reference
10
+
11
+ .. meta::
12
+ :keywords: code example, ACID compliance, multi-document
13
+
14
+ .. contents:: On this page
15
+ :local:
16
+ :backlinks: none
17
+ :depth: 2
18
+ :class: singlecol
19
+
20
+ Overview
21
+ --------
22
+
23
+ In this guide, you can learn how to use the {+django-odm+} to perform
24
+ **transactions**. Transactions allow you to perform a series of operations
25
+ that change data only if the entire transaction is committed.
26
+ If any operation in the transaction does not succeed, the library stops the
27
+ transaction and discards all data changes before they ever become
28
+ visible. This feature is called **atomicity**.
You can’t perform that action at this time.
0 commit comments