pub enum TableKind {
Table,
View,
Virtual,
Subquery,
}Expand description
What kind of schema object a name resolves to.
Variants§
Table
An ordinary table.
View
A view.
Virtual
A virtual table.
Subquery
A nested query standing in for a table: a FROM subquery, a CTE reference, or an expanded view.
It is a kind rather than a flag because every question the binder asks of a table - has it a rowid, can it be written to, may an index be used on it - has the same answer for all three, and a kind makes the answer one match arm instead of three conditions that can drift apart.
Trait Implementations§
impl Copy for TableKind
impl Eq for TableKind
impl StructuralPartialEq for TableKind
Auto Trait Implementations§
impl Freeze for TableKind
impl RefUnwindSafe for TableKind
impl Send for TableKind
impl Sync for TableKind
impl Unpin for TableKind
impl UnsafeUnpin for TableKind
impl UnwindSafe for TableKind
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