The MongoDB\Driver\WriteResult class

(mongodb >=1.0.0)

Introduction

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

Class synopsis

final MongoDB\Driver\WriteResult {
/* Methods */
final public getDeletedCount ( void ) : integer|null
final public getInsertedCount ( void ) : integer|null
final public getMatchedCount ( void ) : integer|null
final public getModifiedCount ( void ) : integer|null
final public getServer ( void ) : MongoDB\Driver\Server
final public getUpsertedCount ( void ) : integer|null
final public getUpsertedIds ( void ) : array
final public getWriteConcernError ( void ) : MongoDB\Driver\WriteConcernError|null
final public getWriteErrors ( void ) : array
final public isAcknowledged ( void ) : bool
}

Table of Contents