creole.drivers.pgsql
[ class tree: creole.drivers.pgsql ] [ index: creole.drivers.pgsql ] [ all elements ]

Class: PgSQLResultSet

Source Location: /creole/drivers/pgsql/PgSQLResultSet.php

Class Overview

ResultSetCommon
   |
   --PgSQLResultSet

PostgreSQL implementation of ResultSet.


Author(s):

Version:

  • $Revision: 1.25 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 32]
PostgreSQL implementation of ResultSet.



Tags:

version:  $Revision: 1.25 $
author:  Hans Lellelid <hans@xmpl.org>


[ Top ]


Class Methods


method close [line 97]

void close( )



Tags:

access:  public
see:  ResultSet::close()


[ Top ]

method getArray [line 150]

array getArray( mixed $column)

Reads a column as an array.

The value of the column is unserialized & returned as an array.




Tags:

access:  public
throws:  SQLException - If the column specified is not a valid key in current field array.


Overrides ResultSetCommon::getArray() (parent method not documented)

Parameters:

mixed   $column   Column name (string) or index (int) starting with 1.

[ Top ]

method getBlob [line 165]

Blob getBlob( mixed $column)

Returns Blob with contents of column value.



Tags:

return:  New Blob with data from column.
access:  public
throws:  SQLException - If the column specified is not a valid key in current field array.


Overrides ResultSetCommon::getBlob() (parent method not documented)

Parameters:

mixed   $column   Column name (string) or index (int) starting with 1 (if ResultSet::FETCHMODE_NUM was used).

[ Top ]

method getBoolean [line 181]

boolean getBoolean( mixed $column)



Tags:

access:  public
throws:  SQLException - If the column specified is not a valid key in current field array.


Overrides ResultSetCommon::getBoolean() (parent method not documented)

Parameters:

mixed   $column   Column name (string) or index (int) starting with 1.

[ Top ]

method getRecordCount [line 85]

void getRecordCount( )



Tags:

access:  public
see:  ResultSet::getRecordCount()


[ Top ]

method next [line 61]

void next( )



Tags:

access:  public
see:  ResultSet::next()


[ Top ]

method seek [line 46]

void seek( mixed $rownum)

Postgres doesn't actually move the db pointer. The specific row is fetched by call to pg_fetch_array() rather than by a seek and then an unspecified pg_fetch_array() call.

The only side-effect of this situation is that we don't really know if the seek will fail or succeed until we have called next(). This behavior is acceptible - and explicitly documented in ResultSet::seek() phpdoc.




Tags:

access:  public
see:  ResultSet::seek()


[ Top ]


Documentation generated on Mon, 23 Aug 2004 21:52:38 -0400 by phpDocumentor 1.3.0RC3