pub fn referred_tables<'a>(&'a self, tables: &'a [Table]) -> Vec<(&'a Column, &'a Table)> {
        let mut referred_tables = Vec::new();
        for c in &self.columns {
            if let Some(ref foreign) = c.foreign {
                let ft = foreign;
                let ftable = Self::get_table(&ft.schema, &ft.table, tables);
                referred_tables.push((c, ftable));
            }
        }
        referred_tables
    }
/// get all the tables that is referred by this table
/// get has_one
get all the tables that is referred by this table
get has_one
get all the tables that is referred by this table get has_one
pub fn referred_tables<'a>(&'a self, tables: &'a [Table]) -> Vec<(&'a Column, &'a Table)> {
        let mut referred_tables = Vec::new();
        for c in &self.columns {
            if let Some(ref foreign) = c.foreign {
                let ft = foreign;
                let ftable = Self::get_table(&ft.schema, &ft.table, tables);
                referred_tables.push((c, ftable));
            }
        }
        referred_tables
    }
pub fn referred_tables < ' a > ( & ' a self , tables : & ' a [ Table ] ) -> Vec < ( & ' a Column , & ' a Table ) > { let mut referred_tables = Vec :: new ( ) ; for c in & self . columns { if let Some ( ref foreign ) = c . foreign { let ft = foreign ; let ftable = Self :: get_table ( & ft . schema , & ft . table , tables ) ; referred_tables . push ( ( c , ftable ) ) ; } } referred_tables }
get all the tables that is referred by this table
get has_one
get all the tables that is referred by this table get has_one
&'a self
tables
&'a [Table]
&'a self
tables
&'a [Table]