Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2373

IDL for functions that take flexible options

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None

      Define an IDL that describes the set of options accepted by mongoc_collection_insert_one and the other CDRIVER-2331 functions, by mongoc_collection_aggregate, mongoc_collection_find_and_modify_with_opts, and mongoc_collection_find_with_opts, by the bulk operations in CDRIVER-1525, by the other flexible functions in CDRIVER-1524, by the read/write command with opts functions in CDRIVER-1527, and any other functions I omitted that take "opts".

      Process the IDL definition for each "opts" function and produce:

      • a strongly-typed struct with a field for each possible option
      • code that parses the bson_t opts once, validates each input field, and populates the struct
      • Sphinx markup that is automatically included in the appropriate place in the function's .rst documentation file

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: