pub enum Column {
UserId,
RoleId,
}Available on crate feature
rbac only.Expand description
Generated by sea-orm-macros
Variants§
Trait Implementations§
Source§impl ColumnTrait for Column
impl ColumnTrait for Column
type EntityName = Entity
Source§fn enum_type_name(&self) -> Option<&'static str>
fn enum_type_name(&self) -> Option<&'static str>
Get the enum type name if this is a enum column
Source§fn select_as(&self, expr: Expr) -> SimpleExpr
fn select_as(&self, expr: Expr) -> SimpleExpr
Cast column expression used in select statement.
It only cast database enum as text if it’s an enum column.
Source§fn save_as(&self, val: Expr) -> SimpleExpr
fn save_as(&self, val: Expr) -> SimpleExpr
Cast value of a column into the correct type for database storage.
By default, it only cast text as enum type if it’s an enum column.
Source§fn json_key(&self) -> &'static str
fn json_key(&self) -> &'static str
Available on crate feature
with-json only.Get the JSON key for deserialization.
Source§fn entity_name(&self) -> DynIden
fn entity_name(&self) -> DynIden
Get the name of the entity the column belongs to
Source§fn as_column_ref(&self) -> (DynIden, DynIden)
fn as_column_ref(&self) -> (DynIden, DynIden)
Get the table.column reference
fn gt<V>(&self, v: V) -> Expr
fn gte<V>(&self, v: V) -> Expr
fn lt<V>(&self, v: V) -> Expr
fn lte<V>(&self, v: V) -> Expr
Source§fn starts_with<T>(&self, s: T) -> Expr
fn starts_with<T>(&self, s: T) -> Expr
This is a simplified shorthand for a more general
like method.
Use like if you need something more complex, like specifying an escape character. Read moreSource§fn ends_with<T>(&self, s: T) -> Expr
fn ends_with<T>(&self, s: T) -> Expr
This is a simplified shorthand for a more general
like method.
Use like if you need something more complex, like specifying an escape character. Read moreSource§fn contains<T>(&self, s: T) -> Expr
fn contains<T>(&self, s: T) -> Expr
This is a simplified shorthand for a more general
like method.
Use like if you need something more complex, like specifying an escape character. Read moreSource§fn is_not_null(&self) -> Expr
fn is_not_null(&self) -> Expr
See also SeaQuery’s method with same name.
Source§fn if_null<V>(&self, v: V) -> Expr
fn if_null<V>(&self, v: V) -> Expr
Provide fallback value if the column is null (null coalescing)
fn is_in<V, I>(&self, v: I) -> Expr
fn is_not_in<V, I>(&self, v: I) -> Expr
Source§fn eq_any<V, I>(&self, v: I) -> Expr
fn eq_any<V, I>(&self, v: I) -> Expr
Available on crate feature
postgres-array only.Postgres only. Read more
fn in_subquery(&self, s: SelectStatement) -> Expr
fn not_in_subquery(&self, s: SelectStatement) -> Expr
Source§fn array_contains<V, I>(&self, v: I) -> Expr
fn array_contains<V, I>(&self, v: I) -> Expr
Available on crate feature
postgres-array only.Array operator. Postgres only.
Source§fn array_contained<V, I>(&self, v: I) -> Expr
fn array_contained<V, I>(&self, v: I) -> Expr
Available on crate feature
postgres-array only.Array operator. Postgres only.
Source§fn array_overlap<V, I>(&self, v: I) -> Expr
fn array_overlap<V, I>(&self, v: I) -> Expr
Available on crate feature
postgres-array only.Array operator. Postgres only.
Source§fn select_enum_as(&self, expr: Expr) -> Expr
fn select_enum_as(&self, expr: Expr) -> Expr
Cast enum column as text; do nothing if
self is not an enum.Source§fn save_enum_as(&self, val: Expr) -> Expr
fn save_enum_as(&self, val: Expr) -> Expr
Cast value of an enum column as enum type; do nothing if
self is not an enum.Source§impl Iden for Column
impl Iden for Column
Source§impl IdenStatic for Column
impl IdenStatic for Column
Source§impl IntoEnumIterator for Column
impl IntoEnumIterator for Column
type Iterator = ColumnIter
fn iter() -> ColumnIter ⓘ
impl Copy for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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<C> ColumnAsExpr for Cwhere
C: ColumnTrait,
impl<C> ColumnAsExpr for Cwhere
C: ColumnTrait,
Source§fn into_column_as_expr(self) -> Expr
fn into_column_as_expr(self) -> Expr
Casting ActiveEnum as TEXT in select expression,
otherwise same as IntoSimpleExpr::into_simple_expr
Source§impl<E, C> IdentityOf<E> for Cwhere
E: EntityTrait<Column = C>,
C: ColumnTrait,
impl<E, C> IdentityOf<E> for Cwhere
E: EntityTrait<Column = C>,
C: ColumnTrait,
Source§fn identity_of(self) -> Identity
fn identity_of(self) -> Identity
Method to call to perform this check
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoColumnRef for T
impl<T> IntoColumnRef for T
fn into_column_ref(self) -> ColumnRef
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoIdentity for Twhere
T: IdenStatic,
impl<T> IntoIdentity for Twhere
T: IdenStatic,
Source§fn into_identity(self) -> Identity
fn into_identity(self) -> Identity
Method to perform the conversion
Source§impl<T> IntoIndexColumn for Twhere
T: Into<IndexColumn>,
impl<T> IntoIndexColumn for Twhere
T: Into<IndexColumn>,
fn into_index_column(self) -> IndexColumn
Source§impl<C> IntoSimpleExpr for Cwhere
C: ColumnTrait,
impl<C> IntoSimpleExpr for Cwhere
C: ColumnTrait,
Source§fn into_simple_expr(self) -> Expr
fn into_simple_expr(self) -> Expr
Method to perform the conversion