use crate::dsl::Column;
#[derive(Debug, Clone)]
pub struct On<L, R> {
pub left: Column<L>,
pub right: Column<R>,
}
pub trait ColumnExt<T> {
fn eq_column<U>(self, other: Column<U>) -> On<T, U>;
}
impl<T> ColumnExt<T> for Column<T> {
fn eq_column<U>(self, other: Column<U>) -> On<T, U> {
On {
left: self,
right: other,
}
}
}