Skip to content

Commit c0c5e9e

Browse files
committed
replace classmongocxx_1_1 with classmongocxx_1_1v__noabi_1_1
1 parent 86d4a2b commit c0c5e9e

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

docs/content/mongocxx-v3/configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title = "Configuring the mongocxx driver"
99
In the mongocxx driver, most configuration is done via the [connection
1010
URI](https://www.mongodb.com/docs/manual/reference/connection-string/). Some
1111
additional connection options are possible via the
12-
[mongocxx::options::client]({{< api3ref classmongocxx_1_1options_1_1client
12+
[mongocxx::options::client]({{< api3ref classmongocxx_1_1v__noabi_1_1options_1_1client
1313
>}}) class.
1414
1515
## Configuring TLS/SSL
@@ -21,7 +21,7 @@ To enable TLS (SSL), set `tls=true` in the URI:
2121
By default, mongocxx will verify server certificates against the local
2222
system CA list. You can override that either by specifying different settings in
2323
the connection string, or by creating a
24-
[mongocxx::options::tls]({{< api3ref classmongocxx_1_1options_1_1tls >}})
24+
[mongocxx::options::tls]({{< api3ref classmongocxx_1_1v__noabi_1_1options_1_1tls >}})
2525
object and passing it to `tls_opts` on mongocxx::options::client.
2626

2727
For example, to use a custom CA or to disable certificate validation,
@@ -109,7 +109,7 @@ See the MongoDB server
109109
for more information about determining the subject name from the
110110
certificate.
111111

112-
The PEM file can also be specified using the [mongocxx::options::tls]({{< api3ref classmongocxx_1_1options_1_1tls >}}) class, see the first "Configuring TLS/SSL" example above.
112+
The PEM file can also be specified using the [mongocxx::options::tls]({{< api3ref classmongocxx_1_1v__noabi_1_1options_1_1tls >}}) class, see the first "Configuring TLS/SSL" example above.
113113

114114
### Kerberos (GSSAPI)
115115

docs/content/mongocxx-v3/tutorial.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ c++ --std=c++11 <input>.cpp
6363
## Make a Connection
6464

6565
**IMPORTANT**: Before making any connections, you need to create one and only
66-
one instance of [`mongocxx::instance`]({{< api3ref classmongocxx_1_1instance >}}).
66+
one instance of [`mongocxx::instance`]({{< api3ref classmongocxx_1_1v__noabi_1_1instance >}}).
6767
This instance must exist for the entirety of your program.
6868

6969
To connect to a running MongoDB instance, use the
70-
[`mongocxx::client`]({{< api3ref classmongocxx_1_1client >}})
70+
[`mongocxx::client`]({{< api3ref classmongocxx_1_1v__noabi_1_1client >}})
7171
class.
7272

7373
You must specify the host to connect to using a
74-
[`mongocxx::uri`]({{< api3ref classmongocxx_1_1uri >}}) instance containing a
74+
[`mongocxx::uri`]({{< api3ref classmongocxx_1_1v__noabi_1_1uri >}}) instance containing a
7575
[MongoDB URI](https://www.mongodb.com/docs/manual/reference/connection-string/),
7676
and pass that into the `mongocxx::client` constructor. For details regarding
7777
supported URI options see the documentation for the version of libmongoc used
@@ -96,10 +96,10 @@ mongocxx::client client(uri);
9696

9797
## Access a Database
9898

99-
Once you have a [`mongocxx::client`]({{< api3ref classmongocxx_1_1client >}})
99+
Once you have a [`mongocxx::client`]({{< api3ref classmongocxx_1_1v__noabi_1_1client >}})
100100
instance connected to a MongoDB deployment, use either the
101101
`database()` method or `operator[]` to obtain a
102-
[`mongocxx::database`]({{< api3ref classmongocxx_1_1database >}})
102+
[`mongocxx::database`]({{< api3ref classmongocxx_1_1v__noabi_1_1database >}})
103103
instance.
104104

105105
If the database you request does not exist, MongoDB creates it when you
@@ -114,9 +114,9 @@ auto db = client["mydb"];
114114
## Access a Collection
115115

116116
Once you have a
117-
[`mongocxx::database`]({{< api3ref classmongocxx_1_1database >}})
117+
[`mongocxx::database`]({{< api3ref classmongocxx_1_1v__noabi_1_1database >}})
118118
instance, use either the `collection()` method or `operator[]` to obtain a
119-
[`mongocxx::collection`]({{< api3ref classmongocxx_1_1collection >}})
119+
[`mongocxx::collection`]({{< api3ref classmongocxx_1_1v__noabi_1_1collection >}})
120120
instance.
121121

122122
If the collection you request does not exist, MongoDB creates it when
@@ -204,18 +204,18 @@ throw an instance of
204204
### Insert One Document
205205
206206
To insert a single document into the collection, use a
207-
[`mongocxx::collection`]({{< api3ref classmongocxx_1_1collection >}})
207+
[`mongocxx::collection`]({{< api3ref classmongocxx_1_1v__noabi_1_1collection >}})
208208
instance's `insert_one()` method to insert `{ "i": 0 }`:
209209
210210
```c++
211211
auto insert_one_result = collection.insert_one(make_document(kvp("i", 0)));
212212
```
213213

214214
`insert_one_result` is an optional [`mongocxx::result::insert_one`]({{< api3ref
215-
classmongocxx_1_1result_1_1insert_one >}}). In this example, `insert_one_result`
215+
classmongocxx_1_1v__noabi_1_1result_1_1insert_one >}}). In this example, `insert_one_result`
216216
is expected to be set. The default behavior for write operations is to wait for
217217
a reply from the server. This may be overriden by setting an unacknowledged
218-
[`mongocxx::write_concern`]({{< api3ref classmongocxx_1_1write__concern >}}).
218+
[`mongocxx::write_concern`]({{< api3ref classmongocxx_1_1v__noabi_1_1write__concern >}}).
219219

220220
```c++
221221
assert(insert_one_result); // Acknowledged writes return results.
@@ -226,7 +226,7 @@ MongoDB automatically adds an `_id` field to the inserted document.
226226
227227
You can obtain this value using the `inserted_id()` method of the
228228
returned
229-
[`mongocxx::result::insert_one`]({{< api3ref classmongocxx_1_1result_1_1insert__one >}})
229+
[`mongocxx::result::insert_one`]({{< api3ref classmongocxx_1_1v__noabi_1_1result_1_1insert__one >}})
230230
instance.
231231
232232
```c++
@@ -237,7 +237,7 @@ assert(doc_id.type() == bsoncxx::type::k_oid);
237237
### Insert Multiple Documents
238238

239239
To insert multiple documents to the collection, use a
240-
[`mongocxx::collection`]({{< api3ref classmongocxx_1_1collection >}}) instance's
240+
[`mongocxx::collection`]({{< api3ref classmongocxx_1_1v__noabi_1_1collection >}}) instance's
241241
`insert_many()` method, which takes a list of documents to insert.
242242

243243
The following example inserts the documents `{ "i": 1 }` and `{ "i": 2 }`.
@@ -262,7 +262,7 @@ MongoDB automatically adds a `_id` field to the inserted documents.
262262
263263
You can obtain this value using the `inserted_ids()` method of the
264264
returned
265-
[`mongocxx::result::insert_many`]({{< api3ref classmongocxx_1_1result_1_1insert__many >}})
265+
[`mongocxx::result::insert_many`]({{< api3ref classmongocxx_1_1v__noabi_1_1result_1_1insert__many >}})
266266
instance.
267267
268268
```c++
@@ -278,7 +278,7 @@ To query the collection, use the collection’s `find()` and
278278
`find_one` methods.
279279

280280
`find()` will return an instance of
281-
[`mongocxx::cursor`]({{< api3ref classmongocxx_1_1cursor >}}),
281+
[`mongocxx::cursor`]({{< api3ref classmongocxx_1_1v__noabi_1_1cursor >}}),
282282
while `find_one()` will return an instance of
283283
`std::optional<`[`bsoncxx::document::value`]({{< api3ref classbsoncxx_1_1document_1_1value >}})`>`
284284

@@ -369,7 +369,7 @@ To update documents in a collection, you can use the collection’s
369369
`update_one()` and `update_many()` methods.
370370

371371
The update methods return an instance of
372-
`std::optional<`[`mongocxx::result::update`]({{< api3ref classmongocxx_1_1result_1_1update >}})`>`,
372+
`std::optional<`[`mongocxx::result::update`]({{< api3ref classmongocxx_1_1v__noabi_1_1result_1_1update >}})`>`,
373373
which provides information about the operation including the number of
374374
documents modified by the update.
375375

@@ -411,7 +411,7 @@ To delete documents from a collection, you can use a collection’s
411411
`delete_one()` and `delete_many()` methods.
412412

413413
The delete methods return an instance of
414-
`std::optional<`[`mongocxx::result::delete`]({{< api3ref classmongocxx_1_1result_1_1delete__result >}})`>`,
414+
`std::optional<`[`mongocxx::result::delete`]({{< api3ref classmongocxx_1_1v__noabi_1_1result_1_1delete__result >}})`>`,
415415
which contains the number of documents deleted.
416416

417417
### Delete a Single Document
@@ -447,7 +447,7 @@ assert(delete_many_result->deleted_count() == 2);
447447
To create an [index](https://www.mongodb.com/docs/manual/indexes/) on a
448448
field or set of fields, pass an index specification document to the
449449
`create_index()` method of a
450-
[`mongocxx::collection`]({{< api3ref classmongocxx_1_1collection >}}) instance. An
450+
[`mongocxx::collection`]({{< api3ref classmongocxx_1_1v__noabi_1_1collection >}}) instance. An
451451
index key specification document contains the fields to index and the
452452
index type for each field:
453453

0 commit comments

Comments
 (0)