PHP Класс Phalcon\Db\Adapter\MongoDB\BulkWriteResult

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( MongoDB\Driver\WriteResult $writeResult, array $insertedIds ) Constructor.
getDeletedCount ( ) : integer Return the number of documents that were deleted.
getInsertedCount ( ) : integer Return the number of documents that were inserted.
getInsertedIds ( ) : mixed[] Return a map of the inserted documents' IDs.
getMatchedCount ( ) : integer Return the number of documents that were matched by the filter.
getModifiedCount ( ) : integer | null Return the number of documents that were modified.
getUpsertedCount ( ) : integer Return the number of documents that were upserted.
getUpsertedIds ( ) : mixed[] Return a map of the upserted documents' IDs.
isAcknowledged ( ) : boolean Return whether this update was acknowledged by the server.

Описание методов

__construct() публичный метод

Constructor.
public __construct ( MongoDB\Driver\WriteResult $writeResult, array $insertedIds )
$writeResult MongoDB\Driver\WriteResult
$insertedIds array

getDeletedCount() публичный метод

This method should only be called if the write was acknowledged.
См. также: BulkWriteResult::isAcknowledged()
public getDeletedCount ( ) : integer
Результат integer

getInsertedCount() публичный метод

This method should only be called if the write was acknowledged.
См. также: BulkWriteResult::isAcknowledged()
public getInsertedCount ( ) : integer
Результат integer

getInsertedIds() публичный метод

The index of each ID in the map corresponds to the document's position in the bulk operation. If the document had an ID prior to insertion (i.e. the driver did not generate an ID), this will contain its "_id" field value. Any driver-generated ID will be an MongoDB\BSON\ObjectID instance.
public getInsertedIds ( ) : mixed[]
Результат mixed[]

getMatchedCount() публичный метод

This method should only be called if the write was acknowledged.
См. также: BulkWriteResult::isAcknowledged()
public getMatchedCount ( ) : integer
Результат integer

getModifiedCount() публичный метод

This value is undefined (i.e. null) if the write executed as a legacy operation instead of command. This method should only be called if the write was acknowledged.
См. также: BulkWriteResult::isAcknowledged()
public getModifiedCount ( ) : integer | null
Результат integer | null

getUpsertedCount() публичный метод

This method should only be called if the write was acknowledged.
См. также: BulkWriteResult::isAcknowledged()
public getUpsertedCount ( ) : integer
Результат integer

getUpsertedIds() публичный метод

The index of each ID in the map corresponds to the document's position in bulk operation. If the document had an ID prior to upserting (i.e. the server did not need to generate an ID), this will contain its "_id". Any server-generated ID will be an MongoDB\BSON\ObjectID instance. This method should only be called if the write was acknowledged.
См. также: BulkWriteResult::isAcknowledged()
public getUpsertedIds ( ) : mixed[]
Результат mixed[]

isAcknowledged() публичный метод

If the update was not acknowledged, other fields from the WriteResult (e.g. matchedCount) will be undefined.
public isAcknowledged ( ) : boolean
Результат boolean