pub enum Column {
Id,
Schema,
Table,
}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
Source§type EntityName = Entity
type EntityName = Entity
The entity this column belongs to.
Source§fn enum_type_name(&self) -> Option<&'static str>
fn enum_type_name(&self) -> Option<&'static str>
If the column maps to a database
ENUM, the enum’s type name.
Returns None for non-enum columns.Source§fn select_as(&self, expr: Expr) -> SimpleExpr
fn select_as(&self, expr: Expr) -> SimpleExpr
Apply the standard SELECT-side cast for this column. By default,
enum columns are cast to text; non-enum columns are returned as-is.
Source§fn save_as(&self, val: Expr) -> SimpleExpr
fn save_as(&self, val: Expr) -> SimpleExpr
Apply the standard write-side cast: convert text into the database’s
enum type for enum columns, return as-is otherwise.
Source§fn json_key(&self) -> &'static str
fn json_key(&self) -> &'static str
Available on crate feature
with-json only.JSON key used for this column when (de)serializing the model.
Source§fn entity_name(&self) -> DynIden
fn entity_name(&self) -> DynIden
Table iden of the entity this column belongs to.
Source§fn as_column_ref(&self) -> (DynIden, DynIden)
fn as_column_ref(&self) -> (DynIden, DynIden)
Fully-qualified
(table, column) reference, used when building
expressions that need to disambiguate columns across joined tables.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 into_expr(self) -> Expr
fn into_expr(self) -> Expr
Wrap the column in a plain
Expr, suitable for use anywhere a
sea_query expression is expected.Source§fn into_returning_expr(self, db_backend: DbBackend) -> Expr
fn into_returning_expr(self, db_backend: DbBackend) -> Expr
Wrap the column as the expression used inside a
RETURNING clause
for the given backend.Source§fn select_enum_as(&self, expr: Expr) -> Expr
fn select_enum_as(&self, expr: Expr) -> Expr
Cast an enum column to text; no-op for non-enum columns.
Source§fn save_enum_as(&self, val: Expr) -> Expr
fn save_enum_as(&self, val: Expr) -> Expr
Cast a value into the column’s enum type; no-op for non-enum columns.
impl Copy for Column
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 ⓘ
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Build the
SimpleExpr, casting ActiveEnum columns to text;
otherwise identical to 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
Build the
Identity.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
Build the
Identity.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
Build the
SimpleExpr.