Skip to content

Commit 3b656e0

Browse files
committed
NR PR fixes 1
1 parent dd18d9f commit 3b656e0

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

snooty.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ stable-api = "Stable API"
3030
mdb-server = "MongoDB Server"
3131
api = "https://www.mongodb.com/docs/php-library/current/reference"
3232
php-manual = "https://www.php.net/manual/en"
33-
extension-short = "PHP extension"
33+
extension-short = "PHP extension"

source/includes/write/transaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
);
2929

3030
$summary = sprintf(
31-
"SAVINGS +%u CHECKING -%u.", $transferAmount, $transferAmount
31+
"SAVINGS +%u CHECKING -%u", $transferAmount, $transferAmount
3232
);
3333

3434
$receipts->insertOne([

source/write/transaction.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ Perform a Transaction
2020
Overview
2121
--------
2222

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
2424
**transactions**. Transactions allow you to perform a series of operations
2525
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
2727
transaction and discards all data changes before they ever become
2828
visible. This feature is called **atomicity**.
2929

@@ -116,6 +116,7 @@ completes the following actions:
116116

117117
.. input:: /includes/write/transaction.php
118118
:language: php
119+
:copyable:
119120
:dedent:
120121
:start-after: begin-txn
121122
:end-before: end-txn
@@ -125,6 +126,7 @@ completes the following actions:
125126
:visible: false
126127

127128
Successfully performed transaction!
129+
Summary: SAVINGS +1000 CHECKING -1000
128130

129131
Additional Information
130132
----------------------
@@ -135,7 +137,7 @@ following pages in the {+mdb-server+} manual:
135137
- :manual:`Transactions </core/transactions/>`
136138
- :manual:`Server Sessions </reference/server-sessions/>`
137139
- :manual:`Read Isolation, Consistency, and Recency
138-
</core/read-isolation-consistency-recency/#causal-consistency>`
140+
</core/read-isolation-consistency-recency/>`
139141

140142
To learn more about ACID compliance, see the :website:`What are ACID
141143
Properties in Database Management Systems? </basics/acid-transactions>`
@@ -159,10 +161,10 @@ To learn more about the ``Session`` class and methods,
159161
see the following {+extension-short+} API documentation:
160162

161163
- `MongoDB\\Driver\\Session
162-
<https://www.php.net/manual/en/class.mongodb-driver-session.php>`__
164+
<{+php-manual+}/class.mongodb-driver-session.php>`__
163165
- `MongoDB\\Driver\\Session::abortTransaction()
164-
<https://www.php.net/manual/en/mongodb-driver-session.aborttransaction.php>`__
166+
<{+php-manual+}/mongodb-driver-session.aborttransaction.php>`__
165167
- `MongoDB\\Driver\\Session::commitTransaction()
166-
<https://www.php.net/manual/en/mongodb-driver-session.committransaction.php>`__
168+
<{+php-manual+}/mongodb-driver-session.committransaction.php>`__
167169
- `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

Comments
 (0)