pub struct From {
pub root: Arc<TableSchema>,
pub joins: Vec<Join>,
}Expand description
The list of tables in ... FROM table1 [JOIN table2] ...
Fields§
§root: Arc<TableSchema>§joins: Vec<Join>Implementations§
Source§impl From
impl From
pub fn new(root: Arc<TableSchema>) -> Self
pub fn with_inner_join(self, rhs: Arc<TableSchema>, on: OnExpr) -> Self
Sourcepub fn iter_tables(&self) -> impl Clone + Iterator<Item = &TableSchema>
pub fn iter_tables(&self) -> impl Clone + Iterator<Item = &TableSchema>
Returns all the tables, including the ones inside the joins
Sourcepub fn table_names(&self) -> Vec<Box<str>>
pub fn table_names(&self) -> Vec<Box<str>>
Returns all the table names as a Vec<String>, including the ones inside the joins.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for From
impl RefUnwindSafe for From
impl Send for From
impl Sync for From
impl Unpin for From
impl UnwindSafe for From
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
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