mirror of
https://github.com/danog/sql.git
synced 2024-11-26 20:15:08 +01:00
Change Result to extend only Traversable
This commit is contained in:
parent
4f5f3e6d92
commit
50389ebefd
@ -12,8 +12,7 @@
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": ">=8",
|
||||
"amphp/amp": "^3-dev",
|
||||
"amphp/pipeline": "dev-master"
|
||||
"amphp/amp": "^3-dev"
|
||||
},
|
||||
"require-dev": {
|
||||
"amphp/php-cs-fixer-config": "dev-master",
|
||||
|
@ -2,18 +2,8 @@
|
||||
|
||||
namespace Amp\Sql;
|
||||
|
||||
use Amp\Pipeline\Pipeline;
|
||||
|
||||
interface Result extends Pipeline
|
||||
interface Result extends \Traversable
|
||||
{
|
||||
/**
|
||||
* Promise returned resolves with a map (associative array) of column-names to column-values for each row in the
|
||||
* result set. The promise resolves with null when no more rows remain.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function continue(): ?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