Skip to content

Commit 7c1c3ec

Browse files
authored
DOCSP-42514: kotlin user/pass placeholders (mongodb#36)
* DOCSP-42514: kotlin user/pass placeholders * atlas modal not updated to use these placeholders
1 parent 6ea4b9b commit 7c1c3ec

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

source/connect.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ deployment hosted on Atlas:
8484

8585
.. code-block:: kotlin
8686

87-
val uri = "mongodb+srv://<username>:<password>@<hostname/port>/?<options>"
87+
val uri = "mongodb+srv://<db_username>:<db_password>@<hostname/port>/?<options>"
8888
val mongoClient = MongoClient.create(uri)
8989

9090
Replica Set
@@ -161,7 +161,7 @@ selection function:
161161

162162
.. code-block:: kotlin
163163

164-
val client = MongoClient.create("mongodb://<username>:<password>@<hostname>:<port>",
164+
val client = MongoClient.create("mongodb://<db_username>:<db_password>@<hostname>:<port>",
165165
server_selector=<selector function>)
166166

167167
.. To learn more about customizing server selection, see

source/includes/connect/compression-tabs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222

2323
.. code-block:: kotlin
2424
25-
val uri = ConnectionString("mongodb+srv://<user>:<password>@<cluster-url>/?compressors=snappy,zlib,zstd")
25+
val uri = ConnectionString("mongodb+srv://<db_username>:<db_password>@<cluster-url>/?compressors=snappy,zlib,zstd")
2626
2727
val mongoClient = MongoClient.create(uri)

source/includes/connect/disable-host-verification-tabs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020

2121
.. code-block:: kotlin
2222
23-
val uri = "mongodb://<username>:<password>@<hostname>:<port>/?"tls=true&tlsAllowInvalidHostnames=true"
23+
val uri = "mongodb://<db_username>:<db_password>@<hostname>:<port>/?"tls=true&tlsAllowInvalidHostnames=true"
2424
val mongoClient = MongoClient.create(uri)

source/includes/connect/tls-tabs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020

2121
.. code-block:: kotlin
2222
23-
val uri = "mongodb+srv://<user>:<password>@<cluster-url>?tls=true"
23+
val uri = "mongodb+srv://<db_username>:<db_password>@<cluster-url>?tls=true"
2424
val mongoClient = MongoClient.create(uri)

source/includes/connect/zlib-level-tabs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
.. code-block:: kotlin
2121
22-
val uri = "mongodb://<username>:<password>@<hostname>:<port>/?" +
22+
val uri = "mongodb://<db_username>:<db_password>@<hostname>:<port>/?" +
2323
"compressors=zlib" +
2424
"zlibCompressionLevel=<zlib compression level>"
2525

0 commit comments

Comments
 (0)