File tree Expand file tree Collapse file tree 13 files changed +32
-3
lines changed Expand file tree Collapse file tree 13 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ Connect to MongoDB Atlas
72
72
return 0;
73
73
}
74
74
75
+ .. include:: /includes/serverless-compatibility.rst
76
+
75
77
See `Advanced Connections <http://mongoc.org/libmongoc/current/advanced-connections.html>`__
76
78
for more ways to connect.
77
79
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ Connect to MongoDB Atlas
65
65
);
66
66
var database = client.GetDatabase("test");
67
67
68
+ .. include:: /includes/serverless-compatibility.rst
69
+
68
70
See `Connecting <https://mongodb.github.io/mongo-csharp-driver/2.12/reference/driver/connecting/>`__
69
71
for more information.
70
72
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ Connect to MongoDB Atlas
56
56
};
57
57
mongocxx::database db = conn["test"];
58
58
59
+ .. include:: /includes/serverless-compatibility.rst
60
+
59
61
Connect to ``localhost``
60
62
------------------------
61
63
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ Connect to MongoDB Atlas
53
53
.. literalinclude:: /includes/connection-snippets/go-connection.go
54
54
:language: go
55
55
56
+ .. include:: /includes/serverless-compatibility.rst
57
+
56
58
See `Usage <https://github.com/mongodb/mongo-go-driver#usage>`__
57
59
for more detail.
58
60
Original file line number Diff line number Diff line change
1
+ .. note ::
2
+
3
+ For information about connecting to Atlas Serverless, see the
4
+ :atlas: `Serverless Instance Limitations page
5
+ </reference/serverless-instance-limitations/#minimum-driver-versions-for-serverless-instances> `
6
+ for the minimum driver version you need.
Original file line number Diff line number Diff line change @@ -76,10 +76,11 @@ Connect to MongoDB Atlas
76
76
MongoClient mongoClient = MongoClients.create(settings);
77
77
MongoDatabase database = mongoClient.getDatabase("test");
78
78
79
+ .. include:: /includes/serverless-compatibility.rst
80
+
79
81
See :java-docs:`Connect to MongoDB <driver/tutorials/connect-to-mongodb/>`
80
82
for more ways to connect.
81
83
82
-
83
84
Compatibility
84
85
-------------
85
86
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Motor (Async Driver)
11
11
.. contents:: On this page
12
12
:local:
13
13
:backlinks: none
14
- :depth: 2
14
+ :depth: 1
15
15
:class: twocols
16
16
17
17
Introduction
@@ -116,6 +116,8 @@ following code to connect:
116
116
117
117
tornado.ioloop.IOLoop.current().run_sync(get_server_info)
118
118
119
+ .. include:: /includes/serverless-compatibility.rst
120
+
119
121
If the connection succeeds before a five-second timeout, you will see a
120
122
dictionary containing information about the server you connected to.
121
123
Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ Connect to MongoDB Atlas
111
111
112
112
$db = $client->test;
113
113
114
+ .. include:: /includes/serverless-compatibility.rst
115
+
114
116
Connect to ``localhost``
115
117
------------------------
116
118
Original file line number Diff line number Diff line change 9
9
.. contents:: On this page
10
10
:local:
11
11
:backlinks: none
12
- :depth: 2
12
+ :depth: 1
13
13
:class: singlecol
14
14
15
15
Introduction
@@ -86,6 +86,8 @@ Connect to MongoDB Atlas
86
86
except Exception:
87
87
print("Unable to connect to the server.")
88
88
89
+ .. include:: /includes/serverless-compatibility.rst
90
+
89
91
If the connection succeeds before a five-second timeout, you will see a
90
92
dictionary containing information about the server you connected to.
91
93
Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ Connect to MongoDB Atlas
60
60
MongoClient mongoClient = MongoClients.create(settings);
61
61
MongoDatabase database = mongoClient.getDatabase("test");
62
62
63
+ .. include:: /includes/serverless-compatibility.rst
64
+
63
65
See :java-docs:`Connect to MongoDB <driver-reactive/tutorials/connect-to-mongodb/>`
64
66
for more ways to connect.
65
67
You can’t perform that action at this time.
0 commit comments