return pg_num_fields($this->resultID
);
} /**
* Generates an array of column names in the result set.
*/
public function getFieldNames(): array
{ $fieldNames =
[];
for ($i = 0,
$c =
$this->
getFieldCount();
$i <
$c;
$i++
) { $fieldNames[] =
pg_field_name($this->resultID,
$i);
} return $fieldNames;
} /**
* Generates an array of objects representing field meta-data.
*/
public function getFieldData(): array
{ $retVal =
[];