def foreign_keys(self, tbl):
        if tbl not in self.tables:
            raise StopIteration()
        for c in self.tables[tbl].columns:
            if c.referenced_column:
                yield ForeignKey(tbl, (c.name,),
                                 c.referenced_column.table.name,
                                 (c.referenced_column.name,))
dataset/ETHPy150Open jaysw/ipydb/ipydb/metadata/model.py/Database.foreign_keys/original