3.2.3. Querying Rows from the Database

Once you have mapped your database table to a Gamma class, you can query the database by constructing a select SQL call:

allrows = .conn.QueryToClass (tableclass,
                              string ("select * from ",
                                      tableclass.__table));

This statement will query all of the rows in the table attached to tableclass, and return them as an array in allrows. Each element of the array will be a class instance.