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 of two datasets 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,
Whether columns should be qualified (
schema.table.column).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, )
Emit the textual representation into
out using the given writer.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,
Execute a SELECT, streaming labeled rows.
Source§fn prepare<Item, Cols, Exec, Expr>(
&self,
columns: Cols,
executor: &mut Exec,
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<Item, Cols, Exec, Expr>(
&self,
columns: Cols,
executor: &mut Exec,
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 (but do not yet run) a SQL 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