Unsupported versions: 7.3 / 7.2 / 7.1
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.

dictresult

Name

dictresult -- like getresult but returns a list of dictionaries

Synopsis

dictresult()

Parameters

none

Return Type

list

List of dictionaries.

Exceptions

SyntaxError

Too many arguments.

pg.error

Invalid previous result.

Description

dictresult() method returns the list of the values returned by the query with each tuple returned as a dictionary with the field names used as the dictionary index.