pub fn primary_columns(&self) -> Vec<&Column> {
        let mut primary_columns = Vec::new();
        for c in &self.columns {
            if c.is_primary {
                primary_columns.push(c);
            }
        }
        primary_columns.sort_by(|a, b| a.name.cmp(&b.name));
        primary_columns
    }
/// return all the primary columns of this table
return all the primary columns of this table
return all the primary columns of this table
pub fn primary_columns(&self) -> Vec<&Column> {
        let mut primary_columns = Vec::new();
        for c in &self.columns {
            if c.is_primary {
                primary_columns.push(c);
            }
        }
        primary_columns.sort_by(|a, b| a.name.cmp(&b.name));
        primary_columns
    }
pub fn primary_columns ( & self ) -> Vec < & Column > { let mut primary_columns = Vec :: new ( ) ; for c in & self . columns { if c . is_primary { primary_columns . push ( c ) ; } } primary_columns . sort_by ( | a , b | a . name . cmp ( & b . name ) ) ; primary_columns }
return all the primary columns of this table
return all the primary columns of this table
&self
&self