pub struct Table { /* private fields */ }
Expand description
A database table.
Implementations§
source§impl Table
impl Table
sourcepub fn has_column(&self, column_name: &str) -> bool
pub fn has_column(&self, column_name: &str) -> bool
Returns true if this table has a column with the given name.
sourcepub fn get_column(&self, column_name: &str) -> Option<&Column>
pub fn get_column(&self, column_name: &str) -> Option<&Column>
Returns the column with the given name, if any.
sourcepub fn primary_key_indices(&self) -> Vec<usize>
pub fn primary_key_indices(&self) -> Vec<usize>
Returns the indices of table’s primary key columns.