Skip to content

Commit f69cdc6

Browse files
skerschbkay-kim
authored andcommitted
DOCSP-2484: fix compass/uristring in CRUD (#64)
1 parent a35b140 commit f69cdc6

File tree

6 files changed

+31
-4
lines changed

6 files changed

+31
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ source/includes/release-base.yaml
1212
source/includes/release-pinning.yaml
1313
source/includes/release-specifications.yaml
1414
source/driver-examples
15+
screenshot-scripts/.properties.ini

source/includes/drivers_connect.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
- id: shell
55
content: |
66

7+
If you haven't already done so, use :doc:`the connection URI form
8+
</guides/server/drivers>` to construct the connection string
9+
required for this guide.
710

811
Pass the URI to the mongo shell followed by the ``--password``
912
option. You will then be prompted for your password.
@@ -67,6 +70,10 @@
6770
- id: python
6871
content: |
6972

73+
If you haven't already done so, use :doc:`the connection URI form
74+
</guides/server/drivers>` to construct the connection string
75+
required for this guide.
76+
7077
It's a good idea to put your connection code in a class so
7178
that it can be reused.
7279

@@ -93,6 +100,10 @@
93100
- id: motor
94101
content: |
95102

103+
If you haven't already done so, use :doc:`the connection URI form
104+
</guides/server/drivers>` to construct the connection string
105+
required for this guide.
106+
96107
The ``asyncio`` and ``pprint`` imports will be used as you add functionality to your example code.
97108

98109
.. literalinclude:: /driver-examples/motorconnect.py
@@ -104,6 +115,10 @@
104115
- id: java-sync
105116
content: |
106117

118+
If you haven't already done so, use :doc:`the connection URI form
119+
</guides/server/drivers>` to construct the connection string
120+
required for this guide.
121+
107122
This example uses a static utility method to make a connection.
108123
This same utility has a ``closeConnection()`` method that takes
109124
a MongoClient as its argument. This is just one way to
@@ -127,6 +142,10 @@
127142
- id: nodejs
128143
content: |
129144

145+
If you haven't already done so, use :doc:`the connection URI form
146+
</guides/server/drivers>` to construct the connection string
147+
required for this guide.
148+
130149
Note that you will need to modify the URI string
131150
manually below, as node requires URI encoding.
132151

@@ -139,6 +158,10 @@
139158
- id: csharp
140159
content: |
141160

161+
If you haven't already done so, use :doc:`the connection URI form
162+
</guides/server/drivers>` to construct the connection string
163+
required for this guide.
164+
142165
The ``MongoDB.Bson`` package is used in CRUD operations, so you'll import it here.
143166

144167
.. literalinclude:: /driver-examples/csharpconnect.cs

source/includes/steps-insert_server.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ level: 4
44
stepnum: 1
55
content: |
66
7-
If you haven't already done so, non-Compass users may use :doc:`the connection URI form </guides/server/drivers>` to construct the connection string required.
8-
97
.. include:: /includes/drivers_connect.rst
108
---
119
title: Bind to the ``test`` Database

source/includes/steps-read_operators.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ content: |
4747
more JSON documents returned. Note that the records have a height ("size.h") of
4848
less than 15.
4949
50+
5051
.. include:: /includes/results_read5.rst
51-
...
52+
...

source/includes/steps-read_server.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ ref: connect
33
level: 4
44
stepnum: 1
55
content: |
6+
67
If you are using MongoDB Compass, skip this step.
78
89
If you have not already done so, use :doc:`the connection URI form
@@ -48,4 +49,6 @@ content: |
4849
see output that resembles the following:
4950
5051
.. include:: /includes/results_read1.rst
51-
...
52+
53+
...
54+

source/includes/steps-read_server_query.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ stepnum: 1
22
inherit:
33
file: steps-read_server.yaml
44
ref: connect
5+
56
---
67
title: Switch to the ``test`` Database
78
ref: bind_db

0 commit comments

Comments
 (0)