Php/docs/class.mongodb-driver-writeresult

来自菜鸟教程
跳转至:导航、​搜索

(mongodb >=1.0.0)

简介

The MongoDB\Driver\WriteResult class encapsulates information about an executed MongoDB\Driver\BulkWrite and may be returned by MongoDB\Driver\Manager::executeBulkWrite().


类摘要


final MongoDB\Driver\WriteResult {

/* 方法 */

final public getDeletedCount ( ) : int|null

final public getInsertedCount ( ) : int|null

final public getMatchedCount ( ) : int|null

final public getModifiedCount ( ) : int|null

final public getServer ( ) : MongoDB\Driver\Server

final public getUpsertedCount ( ) : int|null

final public getUpsertedIds ( ) : array

final public getWriteErrors ( ) : array

final public isAcknowledged ( ) : bool

}

Table of Contents