def get_indexes(self, cursor, table_name):
        cursor.execute("SHOW INDEX FROM %s" % self.connection.ops.quote_name(table_name))
        indexes = {}
        for row in cursor.fetchall():
            indexes[row[4]] = {'primary_key': (row[2] == 'PRIMARY'), 'unique': not bool(row[1])}
        return indexes
Retrieve all certs and keys set in configuration.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/db/backends/mysql/introspection.py/DatabaseIntrospection.get_indexes--crossover with--dataset/ETHPy150Open letsencrypt/letsencrypt/certbot/interfaces.py/IInstaller.get_all_certs_keys