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