interface ResultDriver

dibi result set driver interface.

Methods

int
getRowCount()

Returns the number of rows in a result set.

bool
seek($row)

Moves cursor position without fetching row.

array
fetch($type)

Fetches the row at current position and moves the internal cursor to the next position.

void
free()

Frees the resources allocated for this result set.

array
getResultColumns()

Returns metadata for all columns in a result set.

mixed
getResultResource()

Returns the result set resource.

string
unescapeBinary($value)

Decodes data from result set.

Details

at line 165
int getRowCount()

Returns the number of rows in a result set.

Return Value

int

at line 173
bool seek($row)

Moves cursor position without fetching row.

Parameters

$row

Return Value

bool

TRUE on success, FALSE if unable to seek to specified record

Exceptions

Exception

at line 181
array fetch($type)

internal  
 

Fetches the row at current position and moves the internal cursor to the next position.

Parameters

$type

Return Value

array

array on success, nonarray if no next record

at line 188
void free()

Frees the resources allocated for this result set.

Return Value

void

at line 194
array getResultColumns()

Returns metadata for all columns in a result set.

Return Value

array

of {name, nativetype [, table, fullname, (int) size, (bool) nullable, (mixed) default, (bool) autoincrement, (array) vendor ]}

at line 200
mixed getResultResource()

Returns the result set resource.

Return Value

mixed

at line 207
string unescapeBinary($value)

Decodes data from result set.

Parameters

$value

Return Value

string