Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-393

Merge BSON `from` helpers into `DocumentIterator`

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      We currently have logic for creating BSON types from a DocumentIterator live inside the BSON types themselves. Moving this code into DocumentIterator serves two purposes:

      • reduces leakage of libbson concepts in the codebase (we only ever use DocumentIterator, should not think of libbson types at all)
      • makes the code easier to refactor (the recent Swift 5 changes would have been a one-line change if all of this code was localized)

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            matt.broadstone Matt Broadstone
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: