<?php declare(strict_types=1); namespace Doctrine\DBAL\Driver; /** * Driver-level statement execution result. */ interface Result { /** * Returns the next row of the result as a numeric array or FALSE if there are no more rows. * * @return list<mixed>|false * * @throws Exception */ public function fetchNumeric(); /** * Returns the next row of the result as an associative array or FALSE if there are no more rows. * * @return array<string,mixed>|false * * @throws Exception */ public function fetchAssociative(); /** * Returns the first value of the next row of the result or FALSE if there are no more rows. * * @return mixed|false * * @throws Exception */ public function fetchOne(); /** * Returns an array containing all of the result rows represented as numeric arrays. * * @return list<list<mixed>> * * @throws Exception */ public function fetchAllNumeric(): array; /** * Returns an array containing all of the result rows represented as associative arrays. * * @return list<array<string,mixed>> * * @throws Exception */ public function fetchAllAssociative(): array; /** * Returns an array containing the values of the first column of the result. * * @return list<mixed> * * @throws Exception */ public function fetchFirstColumn(): array; /** * 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. * * @return int The number of rows. * * @throws Exception */ public function rowCount(): int; /** * Returns the number of columns in the result * * @return int The number of columns in the result. If the columns cannot be counted, * this method must return 0. * * @throws Exception */ public function columnCount(): int; /** * Discards the non-fetched portion of the result, enabling the originating statement to be executed again. */ public function free(): void; }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
API | Folder | 0755 |
|
|
AbstractOracleDriver | Folder | 0755 |
|
|
AbstractSQLServerDriver | Folder | 0755 |
|
|
AbstractSQLiteDriver | Folder | 0755 |
|
|
Exception | Folder | 0755 |
|
|
IBMDB2 | Folder | 0755 |
|
|
Middleware | Folder | 0755 |
|
|
Mysqli | Folder | 0755 |
|
|
OCI8 | Folder | 0755 |
|
|
PDO | Folder | 0755 |
|
|
PgSQL | Folder | 0755 |
|
|
SQLSrv | Folder | 0755 |
|
|
SQLite3 | Folder | 0755 |
|
|
AbstractDB2Driver.php | File | 1.4 KB | 0644 |
|
AbstractException.php | File | 1.05 KB | 0644 |
|
AbstractMySQLDriver.php | File | 6.11 KB | 0644 |
|
AbstractOracleDriver.php | File | 1.81 KB | 0644 |
|
AbstractPostgreSQLDriver.php | File | 2.7 KB | 0644 |
|
AbstractSQLServerDriver.php | File | 1.52 KB | 0644 |
|
AbstractSQLiteDriver.php | File | 1.39 KB | 0644 |
|
Connection.php | File | 1.89 KB | 0644 |
|
Exception.php | File | 404 B | 0644 |
|
FetchUtils.php | File | 1.27 KB | 0644 |
|
Middleware.php | File | 168 B | 0644 |
|
Result.php | File | 2.44 KB | 0644 |
|
ServerInfoAwareConnection.php | File | 543 B | 0644 |
|
Statement.php | File | 3.89 KB | 0644 |
|