Documentation

IDataReader

Interface for reading data from a data source.

Table of Contents

Methods

Close()  : void
Closes the data reader and releases any resources associated with it.
Count()  : int
Gets the number of rows in the data source.
Fields()  : array<string|int, mixed>
Retrieves the field names from the data source.
Read()  : object|null
Reads the next row of data from the data source.

Methods

Close()

Closes the data reader and releases any resources associated with it.

public Close() : void

Count()

Gets the number of rows in the data source.

public Count() : int
Return values
int

The number of rows in the data source.

Fields()

Retrieves the field names from the data source.

public Fields() : array<string|int, mixed>
Return values
array<string|int, mixed>

An array containing the field names.

Read()

Reads the next row of data from the data source.

public Read() : object|null
Return values
object|null

The next row of data as an object, or null if there are no more rows.


        
On this page

Search results