PHP 클래스 Phalcon\Db\Adapter\MongoDB\Operation\InsertMany

또한 보기: MongoDB\Collection::insertMany()
또한 보기: http://docs.mongodb.org/manual/reference/command/insert/
상속: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
파일 보기 프로젝트 열기: phalcon/incubator 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $databaseName, string $collectionName, array $documents, array $options = [] ) Constructs an insert command.
execute ( MongoDB\Driver\Server $server ) : InsertManyResult Execute the operation.

메소드 상세

__construct() 공개 메소드

Supported options: * bypassDocumentValidation (boolean): If true, allows the write to opt out of document level validation. * ordered (boolean): If true, when an insert fails, return without performing the remaining writes. If false, when a write fails, continue with the remaining writes, if any. The default is true. * writeConcern (MongoDB\Driver\WriteConcern): Write concern.
public __construct ( string $databaseName, string $collectionName, array $documents, array $options = [] )
$databaseName string Database name
$collectionName string Collection name
$documents array List of documents to insert
$options array Command options

execute() 공개 메소드

Execute the operation.
또한 보기: Executable::execute()
public execute ( MongoDB\Driver\Server $server ) : InsertManyResult
$server MongoDB\Driver\Server
리턴 Phalcon\Db\Adapter\MongoDB\InsertManyResult