downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

MongoCursor::rewind> <MongoCursor::partial
[edit] Last updated: Fri, 14 Jun 2013

view this page in

MongoCursor::reset

(PECL mongo >=0.9.0)

MongoCursor::resetClears the cursor

Descrição

public void MongoCursor::reset ( void )

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

NULL.



add a note add a note User Contributed Notes MongoCursor::reset - [1 notes]
up
0
fastest963 at gmail dot com
5 months ago
If you call reset() on a cursor and never call hasNext/getNext/etc it will essentially act as a "close" method. This is useful if you didn't finish fetching all the data from a cursor but don't want it to linger around till MongoDB decides to kill it.

 
show source | credits | sitemap | contact | advertising | mirror sites