class MySqliResult implements ResultDriver

The driver for MySQL result set.

Methods

__construct(mysqli_result $resultSet, bool $buffered)

No description

__destruct()

Automatically frees the resources allocated for this result set.

int
getRowCount()

Returns the number of rows in a result set.

array|null
fetch(bool $assoc)

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

bool
seek(int $row)

Moves cursor position without fetching row.

void
free()

Frees the resources allocated for this result set.

array
getResultColumns()

Returns metadata for all columns in a result set.

mysqli_result
getResultResource()

Returns the result set resource.

string
unescapeBinary(string $value)

Decodes data from result set.

Details

at line 30
__construct(mysqli_result $resultSet, bool $buffered)

No description

Parameters

mysqli_result $resultSet
bool $buffered

at line 40
__destruct()

Automatically frees the resources allocated for this result set.

at line 51
int getRowCount()

Returns the number of rows in a result set.

Return Value

int

at line 64
array|null fetch(bool $assoc)

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

Parameters

bool $assoc

true for associative array, false for numeric

Return Value

array|null

at line 76
bool seek(int $row)

Moves cursor position without fetching row.

Parameters

int $row

Return Value

bool

Exceptions

Exception

at line 88
void free()

Frees the resources allocated for this result set.

Return Value

void

at line 97
array getResultColumns()

Returns metadata for all columns in a result set.

Return Value

array

at line 131
mysqli_result getResultResource()

Returns the result set resource.

Return Value

mysqli_result

at line 141
string unescapeBinary(string $value)

Decodes data from result set.

Parameters

string $value

Return Value

string

Traits

Strict