

def get_foreign_keys(self, table, schema=None):
    query = '\n            SELECT column_name, referenced_table_name, referenced_column_name\n            FROM information_schema.key_column_usage\n            WHERE table_name = %s\n                AND table_schema = DATABASE()\n                AND referenced_table_name IS NOT NULL\n                AND referenced_column_name IS NOT NULL'
    cursor = dest_column.execute_sql(query, (table,))
    return [ForeignKeyMetadata(column, dest_table, dest_column, table) for (column, dest_table, dest_column) in cursor.fetchall()]

dataset/ETHPy150Open coleifer/peewee/peewee.py MySQLDatabase.get_foreign_keys/VarMisuse@22/121 `self`->`dest_column`