Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-149

Set local schemas on mongocrypt_t instead of mongocrypt_ctx_t

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      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.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: