fn primary_and_foreign_columns(&self) -> Vec<&Column> {
        let mut both = Vec::new();
        let pk = self.primary_columns();
        let fk = self.foreign_columns();
        for f in fk {
            if pk.contains(&f) {
                // println!("{}.{} is both primary and foreign", self.name, f.name);
                both.push(f);
            }
        }
        both
    }
/// returns only columns that are both primary and foreign
/// FIXME: don't have to do this if the function getmeta data has merged this.
returns only columns that are both primary and foreign
FIXME: don't have to do this if the function getmeta data has merged this.
returns only columns that are both primary and foreign FIXME : don ' t have to do this if the function getmeta data has merged this .
fn primary_and_foreign_columns(&self) -> Vec<&Column> {
        let mut both = Vec::new();
        let pk = self.primary_columns();
        let fk = self.foreign_columns();
        for f in fk {
            if pk.contains(&f) {
                // println!("{}.{} is both primary and foreign", self.name, f.name);
                both.push(f);
            }
        }
        both
    }
fn primary_and_foreign_columns ( & self ) -> Vec < & Column > { let mut both = Vec :: new ( ) ; let pk = self . primary_columns ( ) ; let fk = self . foreign_columns ( ) ; for f in fk { if pk . contains ( & f ) { // println!("{}.{} is both primary and foreign", self.name, f.name); both . push ( f ) ; } } both }
returns only columns that are both primary and foreign
FIXME: don't have to do this if the function getmeta data has merged this.
returns only columns that are both primary and foreign FIXME : don ' t have to do this if the function getmeta data has merged this .
&self
&self