1
0
mirror of https://github.com/danog/postgres.git synced 2024-12-13 18:07:31 +01:00
postgres/lib/ResultSet.php
Aaron Piotrowski b3ff31ec0e
Rename TupleResult to ResultSet
Matches name in amphp/mysql.
2017-12-02 19:35:49 -06:00

27 lines
544 B
PHP

<?php
namespace Amp\Postgres;
use Amp\Iterator;
use Amp\Promise;
interface ResultSet extends Iterator {
const FETCH_ARRAY = 0;
const FETCH_ASSOC = 1;
const FETCH_OBJECT = 2;
/**
* {@inheritdoc}
*
* @param int $type Next row fetch type. Use the FETCH_* constants provided by this interface.
*/
public function advance(int $type = self::FETCH_ASSOC): Promise;
/**
* Returns the number of fields (columns) in each row.
*
* @return int
*/
public function numFields(): int;
}