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

createIndexes guide is unclear

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.13.0
    • 1.12.0
    • docs, libmongoc
    • 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

            kevin.albertson@mongodb.com Kevin Albertson
            gustafn Gustaf Neumann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: