PHP » GoLang |
login |
register |
about
|
GoLang MongoCursor::tailable
request it (372)
GoLang replacement for PHP's MongoCursor::tailable
[edit | history]
MongoCursor::tailable(PECL mongo >=0.9.4) MongoCursor::tailable — Sets whether this cursor will be left open after fetching the last results DescriptionMongo has a feature known as tailable cursors which are similar to the Unix "tail -f" command. Tailable means cursor is not closed when the last data is retrieved. Rather, the cursor marks the final object's position. you can resume using the cursor later, from where it was located, if more data were received. Like any "latent cursor", the cursor may become invalid at some point -- for example if that final object it references were deleted. Thus, you should be prepared to requery if the cursor is MongoCursor::dead(). Parameters
Return ValuesReturns this cursor. Errors/ExceptionsThrows MongoCursorException if this cursor has started iterating. ExamplesExample #1 MongoCursor::tailable() example
<?php See AlsoMongoDB core docs on » tailable cursors.
|
more
Recently updated
more
Most requested
more
Last requests
|