PdoStatement

  • Full name: \Pseudo\PdoStatement
  • Parent class: PDOStatement

Properties

result

private \Pseudo\Result $result

fetchMode

private int $fetchMode

boundParams

private array<int|string,mixed> $boundParams

boundColumns

private array<int|string,mixed> $boundColumns

queryLog

private \Pseudo\QueryLog $queryLog

statement

private string $statement

Methods

__construct

public __construct(mixed $result = null, \Pseudo\QueryLog|null $queryLog = null, string $statement = ''): mixed

Parameters:

Parameter Type Description
$result mixed
$queryLog \Pseudo\QueryLog|null
$statement string

setResult

public setResult(\Pseudo\Result|bool $result): void

Parameters:

Parameter Type Description
$result \Pseudo\Result|bool

execute

public execute(array<int|string,mixed>|null $params = null): bool

Parameters:

Parameter Type Description
$params array|null

Throws:


fetch

public fetch(mixed $mode = null, mixed $cursorOrientation = PDO::FETCH_ORI_NEXT, mixed $cursorOffset): mixed

Parameters:

Parameter Type Description
$mode mixed
$cursorOrientation mixed
$cursorOffset mixed

bindParam

public bindParam(mixed $param, mixed& $var, mixed $type = PDO::PARAM_STR, mixed $maxLength = null, mixed $driverOptions = null): bool

Parameters:

Parameter Type Description
$param mixed
$var mixed
$type mixed
$maxLength mixed
$driverOptions mixed

bindColumn

public bindColumn(mixed $column, mixed& $var, mixed $type = null, mixed $maxLength = null, mixed $driverOptions = null): bool

Parameters:

Parameter Type Description
$column mixed
$var mixed
$type mixed
$maxLength mixed
$driverOptions mixed

bindValue

public bindValue(mixed $param, mixed $value, mixed $type = PDO::PARAM_STR): bool

Parameters:

Parameter Type Description
$param mixed
$value mixed
$type mixed

rowCount

public rowCount(): int

fetchColumn

public fetchColumn(mixed $column): mixed

Parameters:

Parameter Type Description
$column mixed

fetchAll

public fetchAll(int $mode = PDO::FETCH_DEFAULT, mixed $args): array<int|string,mixed>

Parameters:

Parameter Type Description
$mode int
$args mixed

Throws:


processFetchedRow

private processFetchedRow(array<int|string,mixed> $row, int|null $fetchMode): mixed

Parameters:

Parameter Type Description
$row array
$fetchMode int|null

fetchObject

public fetchObject(class-string|null $class = "stdClass", array<int|string,mixed> $constructorArgs = []): object|false

Parameters:

Parameter Type Description
$class class-string|null
$constructorArgs array

Throws:


errorCode

public errorCode(): string|null

errorInfo

public errorInfo(): string[]

columnCount

public columnCount(): int

Throws:


setFetchMode

public setFetchMode(int $mode, mixed $args): true

Parameters:

Parameter Type Description
$mode int
$args mixed

Throws:


getBoundParams

public getBoundParams(): array<int|string,mixed>

getIterator

public getIterator(): \Iterator

Throws:



Automatically generated on 2025-05-14