PHP 클래스 MongoWriteBatch

또한 보기: http://php.net/manual/en/class.mongowritebatch.php
상속: use trait Alcaeus\MongoDbAdapter\Helper\WriteConcernConverter
파일 보기 프로젝트 열기: alcaeus/mongo-php-adapter 1 사용 예제들

공개 메소드들

메소드 설명
add ( array | object $item ) : boolean Adds a write operation to a batch
execute ( array $writeOptions = [] ) : array Executes a batch of write operations

보호된 메소드들

메소드 설명
__construct ( MongoCollection $collection, integer $batchType, array $writeOptions ) Creates a new batch of write operations

비공개 메소드들

메소드 설명
addItem ( array $item )
convertWriteErrors ( MongoDB\Driver\WriteResult $result ) : array
validate ( array $item )

메소드 상세

__construct() 보호된 메소드

Creates a new batch of write operations
또한 보기: http://php.net/manual/en/mongowritebatch.construct.php
protected __construct ( MongoCollection $collection, integer $batchType, array $writeOptions )
$collection MongoCollection
$batchType integer
$writeOptions array

add() 공개 메소드

Adds a write operation to a batch
또한 보기: http://php.net/manual/en/mongowritebatch.add.php
public add ( array | object $item ) : boolean
$item array | object
리턴 boolean

execute() 최종 공개 메소드

Executes a batch of write operations
또한 보기: http://php.net/manual/en/mongowritebatch.execute.php
final public execute ( array $writeOptions = [] ) : array
$writeOptions array
리턴 array