21 $this->handle = $handle;
22 $this->result = $result;
26 return pg_num_rows( $this->result );
31 return @pg_fetch_object( $this->result );
36 return @pg_fetch_array( $this->result );
40 pg_result_seek( $this->result, $pos );
44 return pg_free_result( $this->result );
49 $n = pg_num_fields( $this->result );
50 for ( $i = 0; $i < $n; $i++ ) {
51 $names[] = pg_field_name( $this->result, $i );
Postgres database abstraction layer.
__construct(DatabasePostgres $db, $handle, $result)
doFetchObject()
Get the next row as a stdClass object, or false if iteration has proceeded past the end.
doGetFieldNames()
Get the field names in the result set.
doFetchRow()
Get the next row as an array containing the data duplicated, once with string keys and once with nume...
doNumRows()
Get the number of rows in the result set.
doSeek( $pos)
Modify the current cursor position to the row with the specified offset.
doFree()
Free underlying data.