Struct grafbase_sql_ast::ast::Table
source · pub struct Table<'a> {
pub typ: TableType<'a>,
pub alias: Option<Cow<'a, str>>,
pub database: Option<Cow<'a, str>>,
}
Expand description
A table definition
Fields§
§typ: TableType<'a>
§alias: Option<Cow<'a, str>>
§database: Option<Cow<'a, str>>
Implementations§
source§impl<'a> Table<'a>
impl<'a> Table<'a>
sourcepub fn asterisk(self) -> Expression<'a>
pub fn asterisk(self) -> Expression<'a>
A qualified asterisk to this table
sourcepub fn left_join<J>(self, join: J) -> Self
pub fn left_join<J>(self, join: J) -> Self
Adds a LEFT JOIN
clause to the query, specifically for that table.
Useful to positionally add a JOIN clause in case you are selecting from multiple tables.
sourcepub fn inner_join<J>(self, join: J) -> Self
pub fn inner_join<J>(self, join: J) -> Self
Adds an INNER JOIN
clause to the query, specifically for that table.
Useful to positionally add a JOIN clause in case you are selecting from multiple tables.
sourcepub fn right_join<J>(self, join: J) -> Self
pub fn right_join<J>(self, join: J) -> Self
Adds a RIGHT JOIN
clause to the query, specifically for that table.
Useful to positionally add a JOIN clause in case you are selecting from multiple tables.
Trait Implementations§
source§impl<'a> From<Table<'a>> for Expression<'a>
impl<'a> From<Table<'a>> for Expression<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Table<'a>
impl<'a> Send for Table<'a>
impl<'a> Sync for Table<'a>
impl<'a> Unpin for Table<'a>
impl<'a> UnwindSafe for Table<'a>
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<'a, T> Conjunctive<'a> for Twhere
T: Into<Expression<'a>>,
impl<'a, T> Conjunctive<'a> for Twhere
T: Into<Expression<'a>>,
source§fn and<E>(self, other: E) -> ConditionTree<'a>where
E: Into<Expression<'a>>,
fn and<E>(self, other: E) -> ConditionTree<'a>where
E: Into<Expression<'a>>,
Builds an
AND
condition having self
as the left leaf and other
as the right.source§fn or<E>(self, other: E) -> ConditionTree<'a>where
E: Into<Expression<'a>>,
fn or<E>(self, other: E) -> ConditionTree<'a>where
E: Into<Expression<'a>>,
Builds an
OR
condition having self
as the left leaf and other
as the right.source§fn not(self) -> ConditionTree<'a>
fn not(self) -> ConditionTree<'a>
Builds a
NOT
condition having self
as the condition.