diff --git a/src/Result.php b/src/Result.php index 37f0e10..8ce001d 100644 --- a/src/Result.php +++ b/src/Result.php @@ -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|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.