File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed
connect/connection-options Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,10 @@ connections and runs database commands.
93
93
You can use the same ``Client`` instance to perform multiple tasks, instead of
94
94
creating a new one each time. The ``Client`` type is safe for
95
95
concurrent use by multiple `goroutines
96
- <https://www.golang-book.com/books/intro/10>`__. To learn more about
97
- how connection pools work in the driver, see the :ref:`FAQ page <golang-faq-connection-pool>`.
96
+ <https://www.golang-book.com/books/intro/10>`__.
97
+
98
+ .. TODO, Add back this line when Connection Pools page is made: To learn more about
99
+ how connection pools work in the driver, see the :ref:`Connection Pools guide <golang-connection-pools>`.
98
100
99
101
You can create a client that uses your connection string and other
100
102
client options by passing a ``ClientOptions`` object to the ``Connect()``
Original file line number Diff line number Diff line change
1
+ .. _golang-connection-pools:
1
2
2
3
================
3
4
Connection Pools
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ preferences:
68
68
69
69
client, err := mongo.Connect(clientOpts)
70
70
71
- You don't need to define a password or the ``PasswordSet`` field in
71
+ You can omit a password or the ``PasswordSet`` field in
72
72
your ``Credential`` struct if you store authentication keys in
73
73
``keytab`` files. You can initialize a credential cache for
74
74
authenticating the Kerberos principal using the ``kinit`` binary. To
Original file line number Diff line number Diff line change @@ -60,10 +60,7 @@ Specify SCRAM-SHA-256 Authentication
60
60
61
61
``SCRAM-SHA-256`` is a salted challenge-response authentication mechanism
62
62
(SCRAM) that uses your database username and password, encrypted with the ``SHA-256``
63
- algorithm, to authenticate your user.
64
-
65
- Because ``SCRAM-SHA-256`` is the default authentication mechanism,
66
- you don't need to specify an authentication mechanism to enable ``SCRAM-SHA-256``.
63
+ algorithm, to authenticate your user. ``SCRAM-SHA-256`` is the default authentication mechanism.
67
64
68
65
To specify the default authentication mechanism, omit the
69
66
``AuthMechanism`` option:
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ The following code example shows how to specify the ``X.509`` authentication mec
75
75
76
76
clientOpts := options.Client().ApplyURI(uri).SetAuth(credential)
77
77
78
- ..
78
+ .. TODO
79
79
To learn more about configuring your application to use
80
80
certificates and TLS/SSL options, see
81
81
:ref:`golang-tls-ssl-guide`.
You can’t perform that action at this time.
0 commit comments