mirror of
https://github.com/danog/sql.git
synced 2024-11-30 04:29:18 +01:00
Change Result to extend only Traversable
This commit is contained in:
parent
4f5f3e6d92
commit
50389ebefd
@ -12,8 +12,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8",
|
"php": ">=8",
|
||||||
"amphp/amp": "^3-dev",
|
"amphp/amp": "^3-dev"
|
||||||
"amphp/pipeline": "dev-master"
|
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"amphp/php-cs-fixer-config": "dev-master",
|
"amphp/php-cs-fixer-config": "dev-master",
|
||||||
|
@ -2,18 +2,8 @@
|
|||||||
|
|
||||||
namespace Amp\Sql;
|
namespace Amp\Sql;
|
||||||
|
|
||||||
use Amp\Pipeline\Pipeline;
|
interface Result extends \Traversable
|
||||||
|
|
||||||
interface Result extends Pipeline
|
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* 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
|
* Resolves with a new instance of Result if another result is available after this result. Resolves with null if
|
||||||
* no further results are available.
|
* no further results are available.
|
||||||
|
Loading…
Reference in New Issue
Block a user