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.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more