Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1919

list_collections should apply the Database's codec_options

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • API
    • None

    Description

      list_collections currently uses DEFAULT_CODEC_OPTIONS to decode the collection info documents returned from the listCollections command. We should use the Database's codec_options instead so that users can control the decoding of the response document. This will allow users to get RawBSONDocuments or SON etc...

      We made a similar change to use codec_options for current_op in PYTHON-1709.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: