table->list

Name

table->list -- Return all the rows of a table as a list of objects.

Type: function

Synopsis

table->list( cnxn table-name class, table-rows);

Arguments

cnxn

An instance of <pg95-connection>

table-name

An instance of <string>

class

An instance of <<class>>

Return Values

table-rows

An instance of <list>

Description

Builds objects (instances of class) for the entire contents the database table named table-name. Returns the contents of the table as a list of those objects. The length of the list is the number of rows in the table.