略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: MongoCursorInterface

2024-12-23

The MongoCursorInterface interface

(PECL mongo >=1.5.0)

简介

Interface for cursors, which can be used to iterate through results of a database query or command. This interface is implemented by the MongoCursor and MongoCommandCursor classes.

Note: Similar to Traversable, this interface cannot be implemented in PHP scripts.

类摘要

MongoCursorInterface extends Iterator {
/* 方法 */
abstract public batchSize ( int $batchSize ) : MongoCursorInterface
abstract public dead ( void ) : bool
abstract public getReadPreference ( void ) : array
abstract public info ( void ) : array
abstract public setReadPreference ( string $read_preference [, array $tags ] ) : MongoCursorInterface
abstract public timeout ( int $ms ) : MongoCursorInterface
/* 继承的方法 */
abstract public Iterator::current ( void ) : mixed
abstract public Iterator::key ( void ) : scalar
abstract public Iterator::next ( void ) : void
abstract public Iterator::rewind ( void ) : void
abstract public Iterator::valid ( void ) : bool
}

Table of Contents

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.mongocursorinterface.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3