Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-27

Create write result classes

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.0
    • Affects Version/s: None
    • Component/s: None
    • None

      The CRUD spec refers to numerous result classes that can be returned by write methods:

      • BulkWriteResult
      • InsertOneResult
      • InsertManyResult (used for legacy bulk inserts)
      • DeleteResult
      • UpdateResult

      Optional properties should likely be nullable. Most of the counts (excluding InsertManyResult) specify 64-bit integers, although I imagine we'd like to use PHP's native integer type for these, even on 32-bit platforms.

      Map types can be associative arrays.

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: