pub struct LazyTable { /* private fields */ }Expand description
Lazy-loaded table information.
Implementations§
Source§impl LazyTable
impl LazyTable
Sourcepub fn primary_key(&self) -> &[String]
pub fn primary_key(&self) -> &[String]
Get primary key columns.
Sourcepub fn columns(&self) -> Vec<LazyColumn>
pub fn columns(&self) -> Vec<LazyColumn>
Get columns, parsing on first access.
Sourcepub fn get_column(&self, name: &str) -> Option<LazyColumn>
pub fn get_column(&self, name: &str) -> Option<LazyColumn>
Get column by name.
Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Get column count without parsing.
Sourcepub fn foreign_keys(&self) -> Vec<LazyForeignKey>
pub fn foreign_keys(&self) -> Vec<LazyForeignKey>
Get foreign keys, parsing on first access.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LazyTable
impl !RefUnwindSafe for LazyTable
impl Send for LazyTable
impl Sync for LazyTable
impl Unpin for LazyTable
impl !UnwindSafe for LazyTable
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