PHP Класс Phalcon\Db\Adapter\MongoDB\Operation\DatabaseCommand

См. также: MongoDB\Database::command()
Наследование: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( string $databaseName, array | object $command, array $options = [] ) Constructs a command.
execute ( MongoDB\Driver\Server $server ) : integer Execute the operation.

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

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

Supported options: * readPreference (MongoDB\Driver\ReadPreference): The read preference to use when executing the command. This may be used when issuing the command to a replica set or mongos node to ensure that the driver sets the wire protocol accordingly or adds the read preference to the command document, respectively. * typeMap (array): Type map for BSON deserialization. This will be applied to the returned Cursor (it is not sent to the server).
public __construct ( string $databaseName, array | object $command, array $options = [] )
$databaseName string Database name
$command array | object Command document
$options array Options for command execution

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

Execute the operation.
См. также: Executable::execute()
public execute ( MongoDB\Driver\Server $server ) : integer
$server MongoDB\Driver\Server
Результат integer