pub struct Join<L: DataSet, R: DataSet, E: Expression> {
pub join: JoinType,
pub lhs: L,
pub rhs: R,
pub on: Option<E>,
}Expand description
Binary join with optional ON predicate.
Fields§
§join: JoinTypeJoin kind.
lhs: LLeft-hand data set.
rhs: RRight-hand data set.
on: Option<E>Optional ON expression.
Trait Implementations§
Source§impl<L: DataSet, R: DataSet, E: Expression> DataSet for Join<L, R, E>
impl<L: DataSet, R: DataSet, E: Expression> DataSet for Join<L, R, E>
Source§fn qualified_columns() -> boolwhere
Self: Sized,
fn qualified_columns() -> boolwhere
Self: Sized,
Should columns be qualified (
schema.table.col)?Source§fn write_query(
&self,
writer: &dyn SqlWriter,
context: &mut Context,
out: &mut String,
)
fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, out: &mut String, )
Render into
out.Source§fn select<'s, Exec, Item, Cols, Expr>(
&'s self,
executor: &'s mut Exec,
columns: Cols,
condition: Expr,
limit: Option<u32>,
) -> impl Stream<Item = Result<RowLabeled>> + 'swhere
Self: Sized,
Exec: Executor,
Item: Expression,
Cols: IntoIterator<Item = Item> + Clone,
Expr: Expression,
fn select<'s, Exec, Item, Cols, Expr>(
&'s self,
executor: &'s mut Exec,
columns: Cols,
condition: Expr,
limit: Option<u32>,
) -> impl Stream<Item = Result<RowLabeled>> + 'swhere
Self: Sized,
Exec: Executor,
Item: Expression,
Cols: IntoIterator<Item = Item> + Clone,
Expr: Expression,
Fetch a SELECT query and stream labeled rows.
Source§fn prepare<Exec, Item, Cols, Expr>(
&self,
executor: &mut Exec,
columns: Cols,
condition: &Expr,
limit: Option<u32>,
) -> impl Future<Output = Result<Query<Exec::Driver>>>where
Self: Sized,
Item: Expression,
Cols: IntoIterator<Item = Item> + Clone,
Exec: Executor,
Expr: Expression,
fn prepare<Exec, Item, Cols, Expr>(
&self,
executor: &mut Exec,
columns: Cols,
condition: &Expr,
limit: Option<u32>,
) -> impl Future<Output = Result<Query<Exec::Driver>>>where
Self: Sized,
Item: Expression,
Cols: IntoIterator<Item = Item> + Clone,
Exec: Executor,
Expr: Expression,
Prepare a SELECT query.
Auto Trait Implementations§
impl<L, R, E> Freeze for Join<L, R, E>
impl<L, R, E> RefUnwindSafe for Join<L, R, E>
impl<L, R, E> Send for Join<L, R, E>
impl<L, R, E> Sync for Join<L, R, E>
impl<L, R, E> Unpin for Join<L, R, E>
impl<L, R, E> UnwindSafe for Join<L, R, E>
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