coherence.extern.db_row (module)

get_rows(cursor, sql)[source]

Return a list of ResultRow objects from an SQL query.

getdict(results, description)[source]

Return the list of DBRows in results with a given description.

class DBRow(row, fields)[source]

Bases: object

A single row in a result set.

Each DBRow has a dictionary-style and list-style interface.

Called by ResultSet function. Don’t call directly

__init__(row, fields)[source]

Called by ResultSet function. Don’t call directly

set_extra_attr(attr, value)[source]
keys()[source]

Return the field names

keymappings()[source]

Return a dictionary of the keys and their indices in the row

has_key(key)[source]

Return whether the given key is valid

as_dict()[source]