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> Freeze for Table<'a>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.