Method | Description | |
---|---|---|
__construct ( string $databaseName, array $options = [] ) | Constructs a listCollections command. | |
execute ( MongoDB\Driver\Server $server ) : Phalcon\Db\Adapter\MongoDB\Model\CollectionInfoIterator | Execute the operation. |
Method | Description | |
---|---|---|
executeCommand ( MongoDB\Driver\Server $server ) : |
Returns information for all collections in this database using the listCollections command. | |
executeLegacy ( MongoDB\Driver\Server $server ) : |
Returns information for all collections in this database by querying the "system.namespaces" collection (MongoDB <3.0). |
public __construct ( string $databaseName, array $options = [] ) | ||
$databaseName | string | Database name |
$options | array | Command options |
public execute ( MongoDB\Driver\Server $server ) : Phalcon\Db\Adapter\MongoDB\Model\CollectionInfoIterator | ||
$server | MongoDB\Driver\Server | |
return | Phalcon\Db\Adapter\MongoDB\Model\CollectionInfoIterator |