MongoCommandCursor::__construct
(PECL mongo >=1.5.0)
MongoCommandCursor::__construct — Create a new command cursor
Description
$connection
, string $ns
[, array $command
= array()
] )In many instances, you do not have to create a MongoCommandCursor manually, but instead one of the helper functions such as MongoCollection::aggregateCursor() and MongoCollection::parallelCollectionScan(). However, if the server adds new commands that can return cursors, then manually creating MongoCommandCursor objects is required. However, it might be easier to use the MongoCommandCursor::createFromDocument() instead.
Parameters
-
connection
-
Database connection.
-
ns
-
Full name of database and collection.
-
command
-
Database command.
Return Values
Returns the new cursor.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для работы с базами данных
- Расширения для работы с базами данных отдельных производителей
- MongoDB
- Базовые классы
- MongoCommandCursor::batchSize
- MongoCommandCursor::__construct
- MongoCommandCursor::createFromDocument
- MongoCommandCursor::current
- MongoCommandCursor::dead
- MongoCommandCursor::getReadPreference
- MongoCommandCursor::info
- MongoCommandCursor::key
- MongoCommandCursor::next
- MongoCommandCursor::rewind
- MongoCommandCursor::setReadPreference
- MongoCommandCursor::timeout
- MongoCommandCursor::valid
Коментарии
404 Not Found