mirror of
https://github.com/danog/sql.git
synced 2024-11-26 20:15:08 +01:00
Add Result::fetchRow()
This commit is contained in:
parent
73596dffc1
commit
48f694d3ab
@ -8,6 +8,14 @@ namespace Amp\Sql;
|
||||
*/
|
||||
interface Result extends \Traversable
|
||||
{
|
||||
/**
|
||||
* Returns the next row in the result set or null if no rows remain. This method may be used as an alternative
|
||||
* to foreach iteration to obtain single rows from the result.
|
||||
*
|
||||
* @return array<string, TFieldValue>|null
|
||||
*/
|
||||
public function fetchRow(): ?array;
|
||||
|
||||
/**
|
||||
* Resolves with a new instance of Result if another result is available after this result. Resolves with null if
|
||||
* no further results are available.
|
||||
|
Loading…
Reference in New Issue
Block a user