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

createIndexes guide is unclear

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.12.0
    • Fix Version/s: 1.13.0
    • Component/s: docs, libmongoc
    • Labels:
    • Environment:
      all

      Description

      is it possible to provide an additional public API function forĀ mongoc_collections to access the database, e.g. calledĀ  mongoc_collection_get_database()?

      The need arose from trying to replace the deprecated function mongoc_collection_create_index() with the recommended interface based on mongoc_database_write_command_with_opts(), but this requires the db. The function has just the collection as input, so it would be appreciated to access the ->db member this way.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: