PHP » GoLang |
login |
register |
about
|
GoLang MongoCollection::remove
request it (396)
GoLang replacement for PHP's MongoCollection::remove
[edit | history]
MongoCollection::remove(PECL mongo >=0.9.0) MongoCollection::remove — Remove records from this collection Description
public bool|array MongoCollection::remove
([ array
$criteria = array()
[, array $options = array()
]] )Parameters
Return Values
Returns an array containing the status of the removal if the
"w" option is set. Otherwise, returns Fields in the status array are described in the documentation for MongoCollection::insert(). Errors/ExceptionsThrows MongoCursorException if the "w" option is set and the write fails. Throws MongoCursorTimeoutException if the "w" option is set to a value greater than one and the operation takes longer than MongoCursor::$timeout milliseconds to complete. This does not kill the operation on the server, it is a client-side timeout. The operation in MongoCollection::$wtimeout is milliseconds. Changelog
ExamplesExample #1 MongoCollection::remove() with justOne example
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|