-
Notifications
You must be signed in to change notification settings - Fork 456
CDRIVER-6044 Text search explicit encryption API and prose tests #2084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
248d35b
6c83fe8
6a7dda8
772abde
854c7ce
ba2f5e6
54b6504
fdce7c5
1cfb661
5fa53b7
43ea85f
29f8bb2
cc7603a
07792f3
9af098f
dac9b64
e6017a6
5c25230
50a0888
b2f7b5f
3e6be76
f7d5620
706d767
b1ba169
9a31103
d6ac164
b8fa71c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| :man_page: mongoc_client_encryption_encrypt_opts_set_text_opts | ||
|
|
||
| mongoc_client_encryption_encrypt_opts_set_text_opts() | ||
| ===================================================== | ||
|
|
||
| Synopsis | ||
| -------- | ||
|
|
||
| .. code-block:: c | ||
|
|
||
| void | ||
| mongoc_client_encryption_encrypt_opts_set_text_opts( | ||
| mongoc_client_encryption_encrypt_opts_t *opts, | ||
| const mongoc_client_encryption_encrypt_text_opts_t *text_opts); | ||
|
|
||
| .. versionadded:: 2.2.0 | ||
|
|
||
| Sets the text search encryption options for explicit encryption. | ||
|
|
||
| |encrypt-text-is-experimental| | ||
|
|
||
| Parameters | ||
| ---------- | ||
|
|
||
| * ``opts``: A :symbol:`mongoc_client_encryption_encrypt_opts_t`. | ||
| * ``text_opts``: A :symbol:`mongoc_client_encryption_encrypt_text_opts_t` specifying text search options. | ||
|
|
||
| .. seealso:: | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_t` | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_new` | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_set_prefix` | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_set_suffix` | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_set_substring` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| :man_page: mongoc_client_encryption_encrypt_text_opts_destroy | ||
|
|
||
| mongoc_client_encryption_encrypt_text_opts_destroy() | ||
| ================================== | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix underlines in docs files to fix the |
||
|
|
||
| Synopsis | ||
| -------- | ||
|
|
||
| .. code-block:: c | ||
|
|
||
| void | ||
| mongoc_client_encryption_encrypt_text_opts_destroy(mongoc_client_encryption_encrypt_text_opts_t *topts); | ||
|
|
||
| .. versionadded:: 2.2.0 | ||
|
|
||
| Frees a :symbol:`mongoc_client_encryption_encrypt_text_opts_t` created with :symbol:`mongoc_client_encryption_encrypt_text_opts_new()`. | ||
|
|
||
| |encrypt-text-is-experimental| | ||
|
|
||
| Parameters | ||
| ---------- | ||
|
|
||
| * ``topts``: A :symbol:`mongoc_client_encryption_encrypt_text_opts_t` to destroy. | ||
|
|
||
| .. seealso:: | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_new` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| :man_page: mongoc_client_encryption_encrypt_text_opts_new | ||
|
|
||
| mongoc_client_encryption_encrypt_text_opts_new() | ||
| ============================== | ||
|
|
||
| Synopsis | ||
| -------- | ||
|
|
||
| .. code-block:: c | ||
|
|
||
| mongoc_client_encryption_encrypt_text_opts_t * | ||
| mongoc_client_encryption_encrypt_text_opts_new(void); | ||
|
|
||
| .. versionadded:: 2.2.0 | ||
|
|
||
| |encrypt-text-is-experimental| | ||
|
|
||
| Returns | ||
| ------- | ||
|
|
||
| A new :symbol:`mongoc_client_encryption_encrypt_text_opts_t` that must be freed with :symbol:`mongoc_client_encryption_encrypt_text_opts_destroy()`. | ||
|
|
||
| .. seealso:: | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_destroy` | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_set_prefix` | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_set_suffix` | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_set_substring` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| :man_page: mongoc_client_encryption_encrypt_text_opts_set_case_sensitive | ||
|
|
||
| mongoc_client_encryption_encrypt_text_opts_set_case_sensitive() | ||
| ============================================= | ||
|
|
||
| Synopsis | ||
| -------- | ||
|
|
||
| .. code-block:: c | ||
|
|
||
| void | ||
| mongoc_client_encryption_encrypt_text_opts_set_case_sensitive( | ||
| mongoc_client_encryption_encrypt_text_opts_t *opts, | ||
| bool case_sensitive); | ||
|
|
||
| .. versionadded:: 2.2.0 | ||
|
|
||
| Sets whether text search is case sensitive. | ||
|
|
||
| |encrypt-text-is-experimental| | ||
|
|
||
| Parameters | ||
| ---------- | ||
|
|
||
| * ``opts``: A :symbol:`mongoc_client_encryption_encrypt_text_opts_t`. | ||
| * ``case_sensitive``: If true, text search is case sensitive. | ||
|
|
||
| .. seealso:: | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_t` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| :man_page: mongoc_client_encryption_encrypt_text_opts_set_diacritic_sensitive | ||
|
|
||
| mongoc_client_encryption_encrypt_text_opts_set_diacritic_sensitive() | ||
| ================================================== | ||
|
|
||
| Synopsis | ||
| -------- | ||
|
|
||
| .. code-block:: c | ||
|
|
||
| void | ||
| mongoc_client_encryption_encrypt_text_opts_set_diacritic_sensitive( | ||
| mongoc_client_encryption_encrypt_text_opts_t *opts, | ||
| bool diacritic_sensitive); | ||
|
|
||
| .. versionadded:: 2.2.0 | ||
|
|
||
| Sets whether text search is diacritic sensitive. | ||
|
|
||
| |encrypt-text-is-experimental| | ||
|
|
||
| Parameters | ||
| ---------- | ||
|
|
||
| * ``opts``: A :symbol:`mongoc_client_encryption_encrypt_text_opts_t`. | ||
| * ``diacritic_sensitive``: If true, text search is diacritic sensitive. | ||
|
|
||
| .. seealso:: | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_t` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| :man_page: mongoc_client_encryption_encrypt_text_opts_set_prefix | ||
|
|
||
| mongoc_client_encryption_encrypt_text_opts_set_prefix() | ||
| ===================================== | ||
|
|
||
| Synopsis | ||
| -------- | ||
|
|
||
| .. code-block:: c | ||
|
|
||
| void | ||
| mongoc_client_encryption_encrypt_text_opts_set_prefix( | ||
| mongoc_client_encryption_encrypt_text_opts_t *opts, | ||
| mongoc_client_encryption_encrypt_text_prefix_opts_t *popts); | ||
|
|
||
| .. versionadded:: 2.2.0 | ||
|
|
||
| Sets the prefix options for text search encryption. | ||
|
|
||
| |encrypt-text-is-experimental| | ||
|
|
||
| Parameters | ||
| ---------- | ||
|
|
||
| * ``opts``: A :symbol:`mongoc_client_encryption_encrypt_text_opts_t`. | ||
| * ``popts``: A :symbol:`mongoc_client_encryption_encrypt_text_prefix_opts_t` to set as prefix options. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add separate page for
|
||
|
|
||
| .. seealso:: | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_new` | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_prefix_opts_new` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| :man_page: mongoc_client_encryption_encrypt_text_opts_set_substring | ||
|
|
||
| mongoc_client_encryption_encrypt_text_opts_set_substring() | ||
| ======================================== | ||
|
|
||
| Synopsis | ||
| -------- | ||
|
|
||
| .. code-block:: c | ||
|
|
||
| void | ||
| mongoc_client_encryption_encrypt_text_opts_set_substring( | ||
| mongoc_client_encryption_encrypt_text_opts_t *opts, | ||
| mongoc_client_encryption_encrypt_text_substring_opts_t *ssopts); | ||
|
|
||
| .. versionadded:: 2.2.0 | ||
|
|
||
| Sets the substring options for text search encryption. | ||
|
|
||
| |encrypt-text-is-experimental| | ||
|
|
||
| Parameters | ||
| ---------- | ||
|
|
||
| * ``opts``: A :symbol:`mongoc_client_encryption_encrypt_text_opts_t`. | ||
| * ``ssopts``: A :symbol:`mongoc_client_encryption_encrypt_text_substring_opts_t` to set as substring options. | ||
|
|
||
| .. seealso:: | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_new` | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_substring_opts_new` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| :man_page: mongoc_client_encryption_encrypt_text_opts_set_suffix | ||
|
|
||
| mongoc_client_encryption_encrypt_text_opts_set_suffix() | ||
| ===================================== | ||
|
|
||
| Synopsis | ||
| -------- | ||
|
|
||
| .. code-block:: c | ||
|
|
||
| void | ||
| mongoc_client_encryption_encrypt_text_opts_set_suffix( | ||
| mongoc_client_encryption_encrypt_text_opts_t *opts, | ||
| mongoc_client_encryption_encrypt_text_suffix_opts_t *sopts); | ||
|
|
||
| .. versionadded:: 2.2.0 | ||
|
|
||
| Sets the suffix options for text search encryption. | ||
|
|
||
| |encrypt-text-is-experimental| | ||
|
|
||
| Parameters | ||
| ---------- | ||
|
|
||
| * ``opts``: A :symbol:`mongoc_client_encryption_encrypt_text_opts_t`. | ||
| * ``sopts``: A :symbol:`mongoc_client_encryption_encrypt_text_suffix_opts_t` to set as suffix options. | ||
|
|
||
| .. seealso:: | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_new` | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_suffix_opts_new` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| :man_page: mongoc_client_encryption_encrypt_text_opts_t | ||
|
|
||
| mongoc_client_encryption_encrypt_text_opts_t | ||
| ============================================= | ||
|
|
||
| Synopsis | ||
| -------- | ||
|
|
||
| .. code-block:: c | ||
|
|
||
| typedef struct _mongoc_client_encryption_encrypt_text_opts_t mongoc_client_encryption_encrypt_text_opts_t; | ||
|
|
||
| .. versionadded:: 2.2.0 | ||
|
|
||
| TextOpts specifies index options for a Queryable Encryption field supporting "textPreview" queries. Used to set options for :symbol:`mongoc_client_encryption_encrypt()`. | ||
|
|
||
| Case sensitive and diacritic sensitive must be set. If prefix or suffix are set, substring must not be set. | ||
|
|
||
| |encrypt-text-is-experimental| | ||
|
|
||
| .. only:: html | ||
|
|
||
| Functions | ||
| --------- | ||
|
|
||
| .. toctree:: | ||
| :titlesonly: | ||
| :maxdepth: 1 | ||
|
|
||
| mongoc_client_encryption_encrypt_text_opts_new | ||
| mongoc_client_encryption_encrypt_text_opts_destroy | ||
| mongoc_client_encryption_encrypt_text_opts_set_case_sensitive | ||
| mongoc_client_encryption_encrypt_text_opts_set_diacritic_sensitive | ||
| mongoc_client_encryption_encrypt_text_opts_set_prefix | ||
| mongoc_client_encryption_encrypt_text_opts_set_suffix | ||
| mongoc_client_encryption_encrypt_text_opts_set_substring | ||
| mongoc_client_encryption_encrypt_text_prefix_opts_new | ||
| mongoc_client_encryption_encrypt_text_prefix_opts_destroy | ||
| mongoc_client_encryption_encrypt_text_prefix_opts_set_str_max_query_length | ||
| mongoc_client_encryption_encrypt_text_prefix_opts_set_str_min_query_length | ||
| mongoc_client_encryption_encrypt_text_suffix_opts_new | ||
| mongoc_client_encryption_encrypt_text_suffix_opts_destroy | ||
| mongoc_client_encryption_encrypt_text_suffix_opts_set_str_max_query_length | ||
| mongoc_client_encryption_encrypt_text_suffix_opts_set_str_min_query_length | ||
| mongoc_client_encryption_encrypt_text_substring_opts_new | ||
| mongoc_client_encryption_encrypt_text_substring_opts_destroy | ||
| mongoc_client_encryption_encrypt_text_substring_opts_set_str_max_length | ||
| mongoc_client_encryption_encrypt_text_substring_opts_set_str_max_query_length | ||
| mongoc_client_encryption_encrypt_text_substring_opts_set_str_min_query_length | ||
| mongoc_client_encryption_encrypt_opts_set_text_opts | ||
|
|
||
| .. seealso:: | ||
|
|
||
| | :symbol:`mongoc_client_encryption_encrypt()` | ||
| | :symbol:`mongoc_client_encryption_encrypt_opts_t()` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| :man_page: mongoc_client_encryption_encrypt_text_prefix_opts_destroy | ||
|
|
||
| mongoc_client_encryption_encrypt_text_prefix_opts_destroy() | ||
| ========================================= | ||
|
|
||
| Synopsis | ||
| -------- | ||
|
|
||
| .. code-block:: c | ||
|
|
||
| void | ||
| mongoc_client_encryption_encrypt_text_prefix_opts_destroy(mongoc_client_encryption_encrypt_text_prefix_opts_t *opts); | ||
|
|
||
| .. versionadded:: 2.2.0 | ||
|
|
||
| Frees a :symbol:`mongoc_client_encryption_encrypt_text_prefix_opts_t` created with :symbol:`mongoc_client_encryption_encrypt_text_prefix_opts_new()`. | ||
|
|
||
| |encrypt-text-is-experimental| | ||
|
|
||
| Parameters | ||
| ---------- | ||
|
|
||
| * ``opts``: A :symbol:`mongoc_client_encryption_encrypt_text_prefix_opts_t` to destroy. | ||
|
|
||
| .. seealso:: | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_prefix_opts_new` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| :man_page: mongoc_client_encryption_encrypt_text_prefix_opts_new | ||
|
|
||
| mongoc_client_encryption_encrypt_text_prefix_opts_new() | ||
| ===================================== | ||
|
|
||
| Synopsis | ||
| -------- | ||
|
|
||
| .. code-block:: c | ||
|
|
||
| mongoc_client_encryption_encrypt_text_prefix_opts_t * | ||
| mongoc_client_encryption_encrypt_text_prefix_opts_new(void); | ||
|
|
||
| .. versionadded:: 2.2.0 | ||
|
|
||
| Returns | ||
| ------- | ||
|
|
||
| A new :symbol:`mongoc_client_encryption_encrypt_text_prefix_opts_t` that must be freed with :symbol:`mongoc_client_encryption_encrypt_text_prefix_opts_destroy()`. | ||
|
|
||
| .. seealso:: | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_prefix_opts_destroy` | ||
| | :symbol:`mongoc_client_encryption_encrypt_text_opts_set_prefix` |
Uh oh!
There was an error while loading. Please reload this page.