'Return a description of the table with the DB-API cursor.description
interface.'

def get_table_description(self, cursor, table_name):

    cursor.execute('\n                                                SELECT    column_name,    is_nullable,    column_default\n                                                FROM    information_schema.columns\n                                                WHERE    table_name    =    %s', [table_name])
    field_map = {line[0]: line[1:] for line in cursor.fetchall()}
    cursor.execute(('SELECT    *    FROM    %s    LIMIT    1' % self.connection.ops.quote_name(table_name)))
    return [FieldInfo(*(line[0:6] + ((field_map[line.name][0] == 'YES'), field_map[line.name][1]))) for line in cursor.description]
