PHP » GoLang |
login |
register |
about
|
GoLang MongoDB\Driver\Manager::executeQuery
request it (383)
GoLang replacement for PHP's MongoDB\Driver\Manager::executeQuery
[edit | history]
PHP MongoDB\Driver\Manager::executeQueryPHP original manual for MongoDB\Driver\Manager::executeQuery [ show | php.net ]MongoDB\Driver\Manager::executeQuery(mongodb >=1.0.0) MongoDB\Driver\Manager::executeQuery — Execute a database query Description
final public MongoDB\Driver\Cursor MongoDB\Driver\Manager::executeQuery
( string
$namespace
, MongoDB\Driver\Query $query
[, array $options = array()
] )Selects a server according to the "readPreference" option and executes the query on that server. By default, the read preference from the MongoDB Connection URI will be used. Parameters
Return ValuesReturns MongoDB\Driver\Cursor on success. Errors/Exceptions
Changelog
ExamplesExample #1 MongoDB\Driver\Manager::executeQuery() example
<?php The above example will output: object(stdClass)#6 (1) { ["x"]=> int(3) } object(stdClass)#7 (1) { ["x"]=> int(2) } See Also
|
more
Recently updated
more
Most requested
more
Last requests
|