Enum Source
pub enum Source {
Model(SourceModel),
Table(SourceTable),
}Variants§
Implementations§
§impl Source
impl Source
pub fn table_with_joins(
tables: Vec<TableRef>,
from_item: TableWithJoins,
) -> Source
pub fn table_with_joins( tables: Vec<TableRef>, from_item: TableWithJoins, ) -> Source
Create a source from a table with joins, providing explicit table refs
pub fn is_model(&self) -> bool
pub fn as_model(&self) -> Option<&SourceModel>
pub fn as_model_unwrap(&self) -> &SourceModel
pub fn model_id(&self) -> Option<ModelId>
pub fn model_id_unwrap(&self) -> ModelId
pub fn is_table(&self) -> bool
pub fn table(table: impl Into<TableRef>) -> Source
pub fn as_source_table(&self) -> &SourceTable
Trait Implementations§
§impl From<SourceTable> for Source
impl From<SourceTable> for Source
§fn from(value: SourceTable) -> Source
fn from(value: SourceTable) -> Source
Converts to this type from the input type.
§impl<'a, T> IntoExprTarget<'a, T> for &'a Sourcewhere
T: Resolve,
impl<'a, T> IntoExprTarget<'a, T> for &'a Sourcewhere
T: Resolve,
fn into_expr_target(self, schema: &'a T) -> ExprTarget<'a>
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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