Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1093

Scope and design support for complex parameter types

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core API
    • Labels:
      None

      Description

      During the implementation of GODRIVER-1054 and GODRIVER-1056 a design flaw was discovered. The drivergen library can only handle simple parameters for operations, like int64, string, and bsoncore.Value. This means parameters that have more structure, like the update and delete commands, cannot be easily represented by the operation.Update and operation.Delete types. For the updates field of the update command and the deletes field of the delete command the only option is a bsoncore.Document which requires the consumer of the operation package to have knowledge of the structure of a command, which leaks part of the abstraction from the operation layer.

      We require a new design for the parameters of operations for drivergen that enables these structured fields. The IDL format needs to be amended to define these structured fields and the code generation components of drivergen need to be updated to handle this.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kris.brandow Kristofer Brandow (Inactive)
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: