Méthode | Description | |
---|---|---|
__construct ( string $databaseName, string $collectionName, array $indexes ) | Constructs a createIndexes command. | |
execute ( MongoDB\Driver\Server $server ) : string[] | Execute the operation. |
Méthode | Description | |
---|---|---|
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). |
public execute ( MongoDB\Driver\Server $server ) : string[] | ||
$server | MongoDB\Driver\Server | |
Résultat | string[] | The names of the created indexes |