@@ -20,10 +20,10 @@ Perform a Transaction
20
20
Overview
21
21
--------
22
22
23
- In this guide, you can learn how to use the {+driver-short +} to perform
23
+ In this guide, you can learn how to use the {+php-library +} to perform
24
24
**transactions**. Transactions allow you to perform a series of operations
25
25
that change data only if the entire transaction is committed.
26
- If any operation in the transaction does not succeed, the driver stops the
26
+ If any operation in the transaction does not succeed, the library stops the
27
27
transaction and discards all data changes before they ever become
28
28
visible. This feature is called **atomicity**.
29
29
@@ -116,6 +116,7 @@ completes the following actions:
116
116
117
117
.. input:: /includes/write/transaction.php
118
118
:language: php
119
+ :copyable:
119
120
:dedent:
120
121
:start-after: begin-txn
121
122
:end-before: end-txn
@@ -125,6 +126,7 @@ completes the following actions:
125
126
:visible: false
126
127
127
128
Successfully performed transaction!
129
+ Summary: SAVINGS +1000 CHECKING -1000
128
130
129
131
Additional Information
130
132
----------------------
@@ -135,7 +137,7 @@ following pages in the {+mdb-server+} manual:
135
137
- :manual:`Transactions </core/transactions/>`
136
138
- :manual:`Server Sessions </reference/server-sessions/>`
137
139
- :manual:`Read Isolation, Consistency, and Recency
138
- </core/read-isolation-consistency-recency/#causal-consistency >`
140
+ </core/read-isolation-consistency-recency/>`
139
141
140
142
To learn more about ACID compliance, see the :website:`What are ACID
141
143
Properties in Database Management Systems? </basics/acid-transactions>`
@@ -159,10 +161,10 @@ To learn more about the ``Session`` class and methods,
159
161
see the following {+extension-short+} API documentation:
160
162
161
163
- `MongoDB\\Driver\\Session
162
- <https://www. php.net/ manual/en /class.mongodb-driver-session.php>`__
164
+ <{+ php- manual+} /class.mongodb-driver-session.php>`__
163
165
- `MongoDB\\Driver\\Session::abortTransaction()
164
- <https://www. php.net/ manual/en /mongodb-driver-session.aborttransaction.php>`__
166
+ <{+ php- manual+} /mongodb-driver-session.aborttransaction.php>`__
165
167
- `MongoDB\\Driver\\Session::commitTransaction()
166
- <https://www. php.net/ manual/en /mongodb-driver-session.committransaction.php>`__
168
+ <{+ php- manual+} /mongodb-driver-session.committransaction.php>`__
167
169
- `MongoDB\\Driver\\Session::startTransaction()
168
- <https://www. php.net/ manual/en /mongodb-driver-session.starttransaction.php>`__
170
+ <{+ php- manual+} /mongodb-driver-session.starttransaction.php>`__
0 commit comments