list_collections should apply the Database's codec_options

XMLWordPrintableJSON

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

      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.

            Assignee:
            Unassigned
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: