pub struct Column<T, V> { /* private fields */ }Implementations§
Source§impl<T, V> Column<T, V>
impl<T, V> Column<T, V>
pub const fn new(table: &'static str, name: &'static str) -> Self
pub const fn table_name(self) -> &'static str
pub const fn name(self) -> &'static str
pub fn expression(self) -> Expression
pub fn eq(self, value: impl IntoSqlValue<V>) -> Expression
pub fn ne(self, value: impl IntoSqlValue<V>) -> Expression
pub fn gt(self, value: impl IntoSqlValue<V>) -> Expression
pub fn gte(self, value: impl IntoSqlValue<V>) -> Expression
pub fn lt(self, value: impl IntoSqlValue<V>) -> Expression
pub fn lte(self, value: impl IntoSqlValue<V>) -> Expression
pub fn like(self, value: impl IntoSqlValue<V>) -> Expression
pub fn eq_column<OtherTable, OtherValue>(
self,
other: Column<OtherTable, OtherValue>,
) -> Expressionwhere
V: SqlComparable<OtherValue>,
pub fn ne_column<OtherTable, OtherValue>(
self,
other: Column<OtherTable, OtherValue>,
) -> Expressionwhere
V: SqlComparable<OtherValue>,
pub fn gt_column<OtherTable, OtherValue>(
self,
other: Column<OtherTable, OtherValue>,
) -> Expressionwhere
V: SqlComparable<OtherValue>,
pub fn gte_column<OtherTable, OtherValue>(
self,
other: Column<OtherTable, OtherValue>,
) -> Expressionwhere
V: SqlComparable<OtherValue>,
pub fn lt_column<OtherTable, OtherValue>(
self,
other: Column<OtherTable, OtherValue>,
) -> Expressionwhere
V: SqlComparable<OtherValue>,
pub fn lte_column<OtherTable, OtherValue>(
self,
other: Column<OtherTable, OtherValue>,
) -> Expressionwhere
V: SqlComparable<OtherValue>,
pub fn eq_subquery<Source: Table>( self, query: SelectQuery<Source, V>, ) -> Expression
pub fn in_subquery<Source: Table>( self, query: SelectQuery<Source, V>, ) -> Expression
pub fn is_null(self) -> Expression
pub fn is_not_null(self) -> Expression
Trait Implementations§
Source§impl<T: Table, V> ConflictTarget<T> for Column<T, V>
impl<T: Table, V> ConflictTarget<T> for Column<T, V>
impl<T, V> Copy for Column<T, V>
Source§impl<T, V> Selection for Column<T, V>
impl<T, V> Selection for Column<T, V>
type Output = V
fn expressions(self) -> Vec<Expression>
Source§impl<T, V> SelectionExt for Column<T, V>
impl<T, V> SelectionExt for Column<T, V>
fn alias(self, alias: &'static str) -> AliasedSelection<Self>
Auto Trait Implementations§
impl<T, V> Freeze for Column<T, V>
impl<T, V> RefUnwindSafe for Column<T, V>
impl<T, V> Send for Column<T, V>
impl<T, V> Sync for Column<T, V>
impl<T, V> Unpin for Column<T, V>
impl<T, V> UnsafeUnpin for Column<T, V>
impl<T, V> UnwindSafe for Column<T, V>
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