Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-8

Rename count methods in WriteResults

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.2
    • Affects Version/s: 0.1.1
    • Component/s: None
    • None

      The CRUD spec defines BulkWriteResult which should match our WriteResult

      class BulkWriteResult {
      
        /**
         * Indicates whether this write result was ackowledged. If not, then all
         * other members of this result will be undefined.
         */
        acknowledged: Boolean optional;
      
        /**
         * Number of documents inserted.
         */
        insertedCount: Int64 required;
      
        /**
         * Map of the index of the operation to the id of the inserted document.
         */
        insertedIds: Map<Int64, any> optional;
      
        /**
         * Number of documents matched for update.
         */
        matchedCount: Int64 required;
      
        /**
         * Number of documents modified.
         */
        modifiedCount: Int64 required;
      
        /**
         * Number of documents deleted.
         */
        deletedCount: Int64 required;
      
        /**
         * Number of documents upserted.
         */
        upsertedCount: Int64 required;
      
        /**
         * Map of the index of the operation to the id of the upserted document.
         */
        upsertedIds: Map<Int64, any> required;
      
      }
      

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

              Created:
              Updated:
              Resolved: