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

또한 보기: MongoDB\Database::command()
상속: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
파일 보기 프로젝트 열기: phalcon/incubator 1 사용 예제들

공개 메소드들

메소드 설명
__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