| Methods |
public
|
__construct(Result|resource $result)
|
#
|
public
|
__destruct()
|
#
|
public
|
fetchNumeric()
{@inheritDoc}
|
#
|
public
|
fetchAssociative()
{@inheritDoc}
|
#
|
public
|
fetchOne()
{@inheritDoc}
|
#
|
public
|
fetchAllNumeric(): array
{@inheritDoc}
|
#
|
public
|
fetchAllAssociative(): array
{@inheritDoc}
|
#
|
public
|
fetchFirstColumn(): array
{@inheritDoc}
|
#
|
public
|
rowCount(): int
Returns the number of rows affected by the DELETE, INSERT, or UPDATE statement that produced the result.
Returns the number of rows affected by the DELETE, INSERT, or UPDATE statement that produced the result.
If the statement executed a SELECT query or a similar platform-specific SQL (e.g. DESCRIBE, SHOW, etc.),
some database drivers may return the number of rows returned by that query. However, this behaviour
is not guaranteed for all drivers and should not be relied on in portable applications.
Returns
Implements
|
#
|
public
|
columnCount(): int
Returns the number of columns in the result
Returns the number of columns in the result
Returns
The number of columns in the result. If the columns cannot be counted,
this method must return 0.
Implements
|
#
|
public
|
free(): void
Discards the non-fetched portion of the result, enabling the originating statement to be executed again.
Discards the non-fetched portion of the result, enabling the originating statement to be executed again.
Implements
|
#
|
private
|
fetchNumericColumnTypes(): array<int, string>
|
#
|
private
|
fetchAssociativeColumnTypes(): array<string, string>
|
#
|
private
|
mapNumericRow(list<string|null> $row, array<int, string> $types): list<mixed>
|
#
|
private
|
mapAssociativeRow(array<string, string|null> $row, array<string, string> $types): array<string, mixed>
|
#
|
private
|
mapType(string $postgresType, ?string $value): string|int|float|bool|null
|
#
|