[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:

bool mongocrypt_setopt_local_schema_map (mongocrypt_t *crypt, mongocrypt_binary_t *schema_map)

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: CDRIVER-3160 set local schemas with a map
Branch: master
https://github.com/10gen/libmongocrypt/commit/38514d6a0b8f1ec7528ed1e91463e16ea27cf3a5

Generated at Thu Feb 08 09:08:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.