pub enum Table {
BTree(Arc<BTreeTable>),
Virtual(Arc<VirtualTable>),
FromClauseSubquery(Arc<FromClauseSubquery>),
}Variants§
Implementations§
Source§impl Table
impl Table
pub fn get_root_page(&self) -> Result<i64>
pub fn get_name(&self) -> &str
pub fn get_column_at(&self, index: usize) -> Option<&Column>
Sourcepub fn get_column_by_name(&self, name: &str) -> Option<(usize, &Column)>
pub fn get_column_by_name(&self, name: &str) -> Option<(usize, &Column)>
Returns the column position and column for a given column name.
pub fn columns(&self) -> &[Column]
pub fn is_strict(&self) -> bool
pub fn btree(&self) -> Option<Arc<BTreeTable>>
Sourcepub fn require_btree(&self) -> Result<Arc<BTreeTable>>
pub fn require_btree(&self) -> Result<Arc<BTreeTable>>
Like btree() but returns an error instead of None.
pub fn btree_mut(&mut self) -> Option<&mut Arc<BTreeTable>>
pub fn virtual_table(&self) -> Option<Arc<VirtualTable>>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Table
impl !UnwindSafe for Table
impl Freeze for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more