@@ -35,14 +35,14 @@ meets an expectation of atomicity, consistency, isolation, and durability.
35
35
MongoDB guarantees that the data involved in your transaction operations remains
36
36
consistent, even if the operations encounter unexpected errors.
37
37
38
- When using the {+driver-short+}, you can start a ``ClientSession `` by calling
38
+ When using the {+driver-short+}, you can start a ``Mongo::Session `` by calling
39
39
the ``start_session`` method on your client. Then, you can perform transactions
40
40
within the session.
41
41
42
42
.. warning::
43
43
44
- Use a ``ClientSession `` only in operations running on the ``MongoClient ``
45
- that created it. Using a ``ClientSession `` with a different ``MongoClient ``
44
+ Use a ``Mongo::Session `` only in operations running on the ``Mongo::Client ``
45
+ that created it. Using a ``Mongo::Session `` with a different ``Mongo::Client ``
46
46
results in operation errors.
47
47
48
48
Methods
@@ -66,8 +66,7 @@ following table describes the methods you can use to manage a transaction:
66
66
the session.
67
67
|
68
68
| You can set transaction options including read concern, write concern,
69
- and read preference by passing a ``TransactionOptions`` instance as a
70
- parameter.
69
+ and read preference by passing a ``Hash`` as a parameter.
71
70
72
71
* - ``commit_transaction``
73
72
- | Commits the active transaction for this session. This method returns an
@@ -109,13 +108,12 @@ actions:
109
108
110
109
.. sharedinclude:: dbx/transactions-parallelism.rst
111
110
112
- .. replacement:: driver-specific-content
113
-
114
111
The {+driver-short+} does not support running parallel operations within a
115
112
single transaction.
116
113
117
114
.. TODO:
118
115
Replace content to use this wording when the bulk write guide is added:
116
+ .. replacement:: driver-specific-content
119
117
.. If you're using {+mdb-server+} v8.0 or later, you can perform
120
118
.. write operations on multiple namespaces within a single transaction by using
121
119
.. the ``bulk-write`` method. For more information, see the :ref:`<ruby-bulk-write>`
0 commit comments