Skip to content

Commit aac87a8

Browse files
Chris ChoChris Cho
authored andcommitted
Merge pull request #290 from ccho-mongodb/DOCSP-30911-server-support
DOCSP-30911: Add server lifecycle support callout (cherry picked from commit 332a3ca)
1 parent 5dee861 commit aac87a8

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

source/compatibility.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ The following compatibility table specifies the recommended version of the
1818

1919
The first column lists the driver version.
2020

21+
.. sharedinclude:: dbx/lifecycle-schedule-callout.rst
22+
2123
.. sharedinclude:: dbx/compatibility-table-legend.rst
2224

2325
.. sharedinclude:: dbx/mongodb-compatibility-table-go.rst
@@ -27,5 +29,5 @@ Language Compatibility
2729

2830
.. sharedinclude:: dbx/language-compatibility-table-go.rst
2931

30-
For more information on how to read the compatibility tables, see our guide on
32+
For more information on how to read the compatibility tables, see our guide on
3133
:ref:`MongoDB Compatibility Tables. <about-driver-compatibility>`

source/fundamentals/connection.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Connection Guide
66

77
.. default-domain:: mongodb
88

9+
.. facet::
10+
:name: genre
11+
:values: tutorial
12+
913
.. contents:: On this page
1014
:local:
1115
:backlinks: none
@@ -63,7 +67,7 @@ To connect to MongoDB, you need to create a client. A client manages
6367
your connections and runs database commands.
6468

6569
.. tip:: Reuse Your Client
66-
70+
6771
We recommend that you reuse your client across sessions and operations.
6872
You can use the same ``Client`` instance to perform multiple tasks, instead of
6973
creating a new one each time. The ``Client`` type is safe for
@@ -85,7 +89,7 @@ more about creating a client, see the API documentation for `Client
8589
<{+api+}/mongo#Client>`__ and `Connect() <{+api+}/mongo#Connect>`__.
8690

8791
You can set the {+stable-api+} version as an option to avoid
88-
breaking changes when you upgrade to a new server version. To
92+
breaking changes when you upgrade to a new server version. To
8993
learn more about the {+stable-api+} feature, see the :ref:`{+stable-api+} page
9094
<golang-stable-api>`.
9195

@@ -278,7 +282,7 @@ amount of time that a single operation can take to execute using the
278282
connection URI string. ``Database``, ``Collection``,
279283
``Session``, ``ChangeStream``, and ``Bucket`` instances elsewhere in
280284
your code inherit the ``Timeout`` option from ``Client`` if you do not set a
281-
Context for operations against the same entity.
285+
Context for operations against the same entity.
282286

283287
If you pass a Context into an operation with a deadline, the driver uses
284288
that Context deadline for the operation. If the context does not have a
@@ -319,4 +323,4 @@ URI option and execute an operation that inherits this setting:
319323
will be deprecated in an upcoming release. The driver ignores ``MaxTime`` and
320324
``MaxCommitTime`` if you set ``Timeout``. The driver still honors
321325
``SocketTimeout`` and ``wTimeout``, but these settings may result in
322-
undefined behavior. Consider using only the single timeout option instead.
326+
undefined behavior. Consider using only the single timeout option instead.

source/index.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
.. default-domain:: mongodb
66

7+
.. facet::
8+
:name: genre
9+
:values: reference
10+
711
.. toctree::
812
:titlesonly:
913
:maxdepth: 1
@@ -26,9 +30,9 @@
2630
Introduction
2731
------------
2832

29-
Welcome to the documentation site for the official {+driver-long+}.
30-
You can add the driver to your application to work with MongoDB in Go.
31-
Download it using `go get <https://pkg.go.dev/cmd/go/internal/get>`__
33+
Welcome to the documentation site for the official {+driver-long+}.
34+
You can add the driver to your application to work with MongoDB in Go.
35+
Download it using `go get <https://pkg.go.dev/cmd/go/internal/get>`__
3236
or set up a runnable project by following our Quick Start guide.
3337

3438
Quick Start

0 commit comments

Comments
 (0)