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

def get_table_description(self, cursor, table_name):

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