PHP » GoLang |
login |
register |
about
|
GoLang MongoCommandCursor::__construct
request it (452)
GoLang replacement for PHP's MongoCommandCursor::__construct
[edit | history]
PHP MongoCommandCursor::__constructPHP original manual for MongoCommandCursor::__construct [ show | php.net ]MongoCommandCursor::__construct(PECL mongo >=1.5.0) MongoCommandCursor::__construct — Create a new command cursor Description
public MongoCommandCursor::__construct
( MongoClient
$connection
, string $ns
, array $command = array()
)Generally, you should not have to construct a MongoCommandCursor manually, as there are helper functions such as MongoCollection::aggregateCursor() and MongoCollection::parallelCollectionScan(); however, if the server introduces new commands that can return cursors, this constructor will be useful in the absence of specific helper methods. You may also consider using MongoCommandCursor::createFromDocument(). Parameters
Return ValuesReturns the new cursor. ExamplesExample #1 MongoCommandCursor example
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|