Set local schemas on mongocrypt_t instead of mongocrypt_ctx_t

XMLWordPrintableJSON

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

      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
              Reporter:
              Kevin Albertson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: