[MONGOCRYPT-149] Set local schemas on mongocrypt_t instead of mongocrypt_ctx_t Created: 31/May/19 Updated: 28/Oct/23 Resolved: 04/Jun/19 |
|
| Status: | Closed |
| Project: | Libmongocrypt |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kevin Albertson | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | API | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | Build libmongocrypt library |
| Description |
|
The current libmongocrypt API requires the driver to pass the local schema for each operation with mongocrypt_ctx_setopt_schema. This requires the driver to determine the namespace of a command. To simplify the integration, let's have the driver set the schema_map once, as a BSON object mapping namespaces to schemas, in a new API function:
And let's remove mongocrypt_ctx_setopt_schema. |
| Comments |
| Comment by Githook User [ 04/Jun/19 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message: |