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

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

공개 메소드들

메소드 설명
__construct ( string $databaseName, string $collectionName, array | object $filter, array $options = [] ) Constructs a find command.
execute ( MongoDB\Driver\Server $server ) : MongoDB\Driver\Cursor Execute the operation.

비공개 메소드들

메소드 설명
createQuery ( ) : MongoDB\Driver\Query Create the find query.

메소드 상세

__construct() 공개 메소드

Supported options: * allowPartialResults (boolean): Get partial results from a mongos if some shards are inaccessible (instead of throwing an error). * batchSize (integer): The number of documents to return per batch. * comment (string): Attaches a comment to the query. If "$comment" also exists in the modifiers document, this option will take precedence. * cursorType (enum): Indicates the type of cursor to use. Must be either NON_TAILABLE, TAILABLE, or TAILABLE_AWAIT. The default is NON_TAILABLE. * limit (integer): The maximum number of documents to return. * maxTimeMS (integer): The maximum amount of time to allow the query to run. If "$maxTimeMS" also exists in the modifiers document, this option will take precedence. * modifiers (document): Meta-operators modifying the output or behavior of a query. * noCursorTimeout (boolean): The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use. Set this option to prevent that. * oplogReplay (boolean): Internal replication use only. The driver should not set this. * projection (document): Limits the fields to return for the matching document. * readConcern (MongoDB\Driver\ReadConcern): Read concern. For servers < 3.2, this option is ignored as read concern is not available. * readPreference (MongoDB\Driver\ReadPreference): Read preference. * skip (integer): The number of documents to skip before returning. * sort (document): The order in which to return matching documents. If "$orderby" also exists in the modifiers document, this option will take precedence. * 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, string $collectionName, array | object $filter, array $options = [] )
$databaseName string Database name
$collectionName string Collection name
$filter array | object Query by which to filter documents
$options array Command options

execute() 공개 메소드

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