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

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

공개 메소드들

메소드 설명
__construct ( string $databaseName, string $collectionName, array $indexes ) Constructs a createIndexes command.
execute ( MongoDB\Driver\Server $server ) : string[] Execute the operation.

비공개 메소드들

메소드 설명
executeCommand ( MongoDB\Driver\Server $server ) Create one or more indexes for the collection using the createIndexes command.
executeLegacy ( MongoDB\Driver\Server $server ) Create one or more indexes for the collection by inserting into the "system.indexes" collection (MongoDB <2.6).

메소드 상세

__construct() 공개 메소드

Constructs a createIndexes command.
public __construct ( string $databaseName, string $collectionName, array $indexes )
$databaseName string Database name
$collectionName string Collection name
$indexes array List of index specifications

execute() 공개 메소드

For servers < 2.6, this will actually perform an insert operation on the database's "system.indexes" collection.
또한 보기: Executable::execute()
public execute ( MongoDB\Driver\Server $server ) : string[]
$server MongoDB\Driver\Server
리턴 string[] The names of the created indexes