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
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__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