PATH:
home
/
lab2454c
/
vaultchip.com
/
vendor
/
doctrine
/
dbal
/
src
/
Driver
<?php declare(strict_types=1); namespace Doctrine\DBAL\Driver; /** * @internal */ final class FetchUtils { /** * @return mixed|false * * @throws Exception */ public static function fetchOne(Result $result) { $row = $result->fetchNumeric(); if ($row === false) { return false; } return $row[0]; } /** * @return list<list<mixed>> * * @throws Exception */ public static function fetchAllNumeric(Result $result): array { $rows = []; while (($row = $result->fetchNumeric()) !== false) { $rows[] = $row; } return $rows; } /** * @return list<array<string,mixed>> * * @throws Exception */ public static function fetchAllAssociative(Result $result): array { $rows = []; while (($row = $result->fetchAssociative()) !== false) { $rows[] = $row; } return $rows; } /** * @return list<mixed> * * @throws Exception */ public static function fetchFirstColumn(Result $result): array { $rows = []; while (($row = $result->fetchOne()) !== false) { $rows[] = $row; } return $rows; } }
[+]
AbstractOracleDriver
[+]
OCI8
[+]
..
[-] AbstractPostgreSQLDriver.php
[edit]
[+]
Mysqli
[+]
Exception
[-] AbstractDB2Driver.php
[edit]
[+]
IBMDB2
[-] AbstractMySQLDriver.php
[edit]
[-] ServerInfoAwareConnection.php
[edit]
[-] FetchUtils.php
[edit]
[-] AbstractOracleDriver.php
[edit]
[-] AbstractSQLiteDriver.php
[edit]
[-] Middleware.php
[edit]
[-] Connection.php
[edit]
[-] AbstractSQLServerDriver.php
[edit]
[+]
PDO
[+]
AbstractSQLServerDriver
[-] AbstractException.php
[edit]
[-] Exception.php
[edit]
[+]
API
[-] Statement.php
[edit]
[-] Result.php
[edit]
[+]
SQLSrv