Полезная информация

9.5. Query result object: pgqueryobject

Table of Contents
getresult -- gets the values returned by the query
dictresult -- like getresult but returns a list of dictionaries
listfields -- lists the fields names of the query result
fieldname -- field number-name conversion
fieldnum -- field name-number conversion
ntuples -- returns the number of tuples in query object