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

Allow looking up DBs and collections with @dynamicMemberLookup

    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

      As discussed in SWIFT-219, Swift 4.2 adds the @dynamicMemberLookup attribute. We could use this to allow shell-style collection access, i.e. something likeĀ 

      let db = client.db("myDb")
      let coll = db.myColl

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              kaitlin.mahar Kaitlin Mahar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: