You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ``opts``: The :symbol:`mongoc_auto_encryption_opts_t`
20
+
* ``encrypted_fields_map``: A :symbol:`bson_t` where keys are collection namespaces and values are encrypted fields documents.
21
+
22
+
Supplying an ``encrypted_fields_map`` provides more security than relying on an ``encryptedFields`` obtained from the server. It protects against a malicious server advertising a false ``encryptedFields``.
23
+
24
+
.. seealso::
25
+
26
+
|:symbol:`mongoc_client_enable_auto_encryption()`
27
+
28
+
|The guide for :doc:`Using Client-Side Field Level Encryption <using_client_side_encryption>`
Copy file name to clipboardExpand all lines: src/libmongoc/doc/mongoc_database_create_collection.rst
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,8 @@ This function creates a :symbol:`mongoc_collection_t` from the given :symbol:`mo
30
30
31
31
If no write concern is provided in ``opts``, the database's write concern is used.
32
32
33
+
The ``encryptedFields`` document in ``opts`` may be used to create a collection used for :doc:`Using Client-Side Field Level Encryption <using_client_side_encryption>`.
34
+
33
35
For a list of all options, see `the MongoDB Manual entry on the create command <https://docs.mongodb.org/manual/reference/command/create/>`_.
Copy file name to clipboardExpand all lines: src/libmongoc/doc/mongoc_database_drop_with_opts.rst
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,8 @@ This function attempts to drop a database on the MongoDB server.
30
30
31
31
If no write concern is provided in ``opts``, the database's write concern is used.
32
32
33
+
The ``encryptedFields`` document in ``opts`` may be used to drop a collection used for :doc:`Using Client-Side Field Level Encryption <using_client_side_encryption>`.
0 commit comments