Make it easier to switch between sync & async drivers

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API, Async
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently the sync and async drivers are completely separate to each other - they use different types, different packages, even different ways of creating clients (sync uses MongoClientOptions and individual parameters, async uses ConnectionString and MongoClientSettings).

      This makes it really hard to use sync & async APIs together - if you want to do some operations sync and some async, for example.

      It should be much easier to move between sync & async APIs, given the same client, database, or collection objects (MongoDatabase.asSync()/MongoDatabase.asAsync())

      If not, at least consolidate how you create sync and async MongoClient objects so you can use the same representation of a connection & client options.

            Assignee:
            Jeffrey Yemin
            Reporter:
            Simon Cooper
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: