pub fn referring_tables<'a>(&self, tables: &'a [Table]) -> Vec<(&'a Table, &'a Column)> {
        let mut referring = Vec::new();
        for t in tables {
            for c in &t.columns {
                if let Some(ref foreign) = c.foreign {
                    if self.name == foreign.table {
                        referring.push((t, c));
                    }
                }
            }
        }
        referring
    }
/// has_many_direct
/// get all other tables that is refering to this table
/// when any column of a table refers to this table
/// get_has_many
has_many_direct
get all other tables that is refering to this table
when any column of a table refers to this table
get_has_many
has_many_direct get all other tables that is refering to this table when any column of a table refers to this table get_has_many
pub fn referring_tables<'a>(&self, tables: &'a [Table]) -> Vec<(&'a Table, &'a Column)> {
        let mut referring = Vec::new();
        for t in tables {
            for c in &t.columns {
                if let Some(ref foreign) = c.foreign {
                    if self.name == foreign.table {
                        referring.push((t, c));
                    }
                }
            }
        }
        referring
    }
pub fn referring_tables < ' a > ( & self , tables : & ' a [ Table ] ) -> Vec < ( & ' a Table , & ' a Column ) > { let mut referring = Vec :: new ( ) ; for t in tables { for c in & t . columns { if let Some ( ref foreign ) = c . foreign { if self . name == foreign . table { referring . push ( ( t , c ) ) ; } } } } referring }
has_many_direct
get all other tables that is refering to this table
when any column of a table refers to this table
get_has_many
has_many_direct get all other tables that is refering to this table when any column of a table refers to this table get_has_many
&self
tables
&'a [Table]
&self
tables
&'a [Table]