@@ -17,10 +17,10 @@ MongoDB C Driver
17
17
Introduction
18
18
------------
19
19
20
- Welcome to the documentation site for the official MongoDB C driver.
21
- You can add the driver to your application to work with MongoDB in C.
22
- Download the required libraries, ``libmongoc`` and ``libbson``, from
23
- `mongoc.org <https://mongoc.org/libmongoc/current/installing.html>`__
20
+ Welcome to the documentation site for the official MongoDB C driver.
21
+ You can add the driver to your application to work with MongoDB in C.
22
+ Download the required libraries, ``libmongoc`` and ``libbson``, from
23
+ `mongoc.org <https://mongoc.org/libmongoc/current/installing.html>`__
24
24
or set up a runnable project by following our tutorial.
25
25
26
26
- `Tutorial <http://mongoc.org/libmongoc/current/tutorial.html>`__
@@ -79,16 +79,18 @@ Connect to MongoDB Atlas
79
79
See `Advanced Connections <http://mongoc.org/libmongoc/current/advanced-connections.html>`__
80
80
for more ways to connect.
81
81
82
- Versioned API
83
- -------------
82
+ {+stable-api+}
83
+ --------------
84
+
85
+ You can use the {+stable-api+} feature starting with MongoDB Server version
86
+ 5.0 and C Driver version 1.18. When you use the {+stable-api+} feature,
87
+ you can update your driver or server without worrying about backward
88
+ compatibility issues with any commands covered by the {+stable-api+}.
89
+
90
+ .. include:: /includes/stable-api-notice.rst
84
91
85
- You can use the `Versioned API
86
- <https://docs.mongodb.com/v5.0/reference/versioned-api/>`__ feature
87
- starting with MongoDB Server version 5.0 and C Driver version 1.18. When
88
- you use the Versioned API feature, you can update your driver or server
89
- without worrying about backward compatibility issues with any commands
90
- covered by the Versioned API. To use this feature, construct a MongoDB
91
- client instance, specifying a version of the Versioned API:
92
+ To use this feature, construct a MongoDB client instance, specifying a version
93
+ of the {+stable-api+}:
92
94
93
95
.. code-block:: c
94
96
@@ -104,7 +106,7 @@ client instance, specifying a version of the Versioned API:
104
106
uri = mongoc_uri_new_with_error (uri_string, &error);
105
107
client = mongoc_client_new_from_uri (uri);
106
108
107
- // Set the version of the Versioned API on the client.
109
+ // Set the version of the {+stable-api+} on the client.
108
110
api = mongoc_server_api_new (MONGOC_SERVER_API_V1);
109
111
mongoc_client_set_server_api (client, api, &error);
110
112
@@ -114,7 +116,7 @@ Connect to a MongoDB Server on Your Local Machine
114
116
.. include:: /includes/localhost-connection.rst
115
117
116
118
To test whether you can connect to your server, replace the connection
117
- string in the :ref:`Connect to MongoDB Atlas <connect-atlas-c-driver>` code
119
+ string in the :ref:`Connect to MongoDB Atlas <connect-atlas-c-driver>` code
118
120
example and run it.
119
121
120
122
Compatibility
@@ -123,7 +125,10 @@ Compatibility
123
125
MongoDB Compatibility
124
126
~~~~~~~~~~~~~~~~~~~~~
125
127
126
- .. include:: /includes/extracts/c-driver-compatibility-matrix-mongodb.rst
128
+ The following compatibility table specifies the recommended version(s) of the
129
+ MongoDB C driver for use with a specific version of MongoDB.
130
+
131
+ The first column lists the driver version(s).
127
132
128
133
.. include:: /includes/mongodb-compatibility-table-c.rst
129
134
@@ -132,7 +137,10 @@ MongoDB Compatibility
132
137
Language Compatibility
133
138
~~~~~~~~~~~~~~~~~~~~~~
134
139
135
- .. include:: /includes/extracts/c-driver-compatibility-matrix-language.rst
140
+ The following compatibility table specifies the recommended version(s) of the
141
+ MongoDB C driver for use with a specific version of C.
142
+
143
+ The first column lists the driver version(s).
136
144
137
145
.. include:: /includes/language-compatibility-table-c.rst
138
146
0 commit comments