Skip to content

Commit 65dc45e

Browse files
committed
CDRIVER-3819 collation is not an option for collection rename
1 parent 47d0a25 commit 65dc45e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/libmongoc/doc/mongoc_collection_rename_with_opts.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ Parameters
2727

2828
.. |opts-source| replace:: ``collection``
2929

30-
.. include:: includes/write-opts.txt
30+
``opts`` may be NULL or a BSON document with additional command options:
31+
32+
* ``writeConcern``: Construct a :symbol:`mongoc_write_concern_t` and use :symbol:`mongoc_write_concern_append` to add the write concern to ``opts``. See the example code for :symbol:`mongoc_client_write_command_with_opts`.
33+
* ``sessionId``: First, construct a :symbol:`mongoc_client_session_t` with :symbol:`mongoc_client_start_session`. You can begin a transaction with :symbol:`mongoc_client_session_start_transaction`, optionally with a :symbol:`mongoc_transaction_opt_t` that overrides the options inherited from |opts-source|, and use :symbol:`mongoc_client_session_append` to add the session to ``opts``. See the example code for :symbol:`mongoc_client_session_t`.
34+
* ``serverId``: To target a specific server, include an int32 "serverId" field. Obtain the id by calling :symbol:`mongoc_client_select_server`, then :symbol:`mongoc_server_description_id` on its return value.
3135

3236
Description
3337
-----------

0 commit comments

Comments
 (0)