risingwave_meta_model::table

Enum Column

source
pub enum Column {
Show 29 variants TableId, Name, OptionalAssociatedSourceId, TableType, BelongsToJobId, Columns, Pk, DistributionKey, StreamKey, AppendOnly, FragmentId, VnodeColIndex, RowIdIndex, ValueIndices, Definition, HandlePkConflictBehavior, VersionColumnIndex, ReadPrefixLenHint, WatermarkIndices, DistKeyInPk, DmlFragmentId, Cardinality, CleanedByWatermark, Description, Version, RetentionSeconds, IncomingSinks, CdcTableId, VnodeCount,
}
Expand description

Generated by sea-orm-macros

Variants§

§

TableId

Generated by sea-orm-macros

§

Name

Generated by sea-orm-macros

§

OptionalAssociatedSourceId

Generated by sea-orm-macros

§

TableType

Generated by sea-orm-macros

§

BelongsToJobId

Generated by sea-orm-macros

§

Columns

Generated by sea-orm-macros

§

Pk

Generated by sea-orm-macros

§

DistributionKey

Generated by sea-orm-macros

§

StreamKey

Generated by sea-orm-macros

§

AppendOnly

Generated by sea-orm-macros

§

FragmentId

Generated by sea-orm-macros

§

VnodeColIndex

Generated by sea-orm-macros

§

RowIdIndex

Generated by sea-orm-macros

§

ValueIndices

Generated by sea-orm-macros

§

Definition

Generated by sea-orm-macros

§

HandlePkConflictBehavior

Generated by sea-orm-macros

§

VersionColumnIndex

Generated by sea-orm-macros

§

ReadPrefixLenHint

Generated by sea-orm-macros

§

WatermarkIndices

Generated by sea-orm-macros

§

DistKeyInPk

Generated by sea-orm-macros

§

DmlFragmentId

Generated by sea-orm-macros

§

Cardinality

Generated by sea-orm-macros

§

CleanedByWatermark

Generated by sea-orm-macros

§

Description

Generated by sea-orm-macros

§

Version

Generated by sea-orm-macros

§

RetentionSeconds

Generated by sea-orm-macros

§

IncomingSinks

Generated by sea-orm-macros

§

CdcTableId

Generated by sea-orm-macros

§

VnodeCount

Generated by sea-orm-macros

Implementations§

Trait Implementations§

source§

impl Clone for Column

source§

fn clone(&self) -> Column

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ColumnTrait for Column

source§

type EntityName = Entity

source§

fn def(&self) -> ColumnDef

Define a column for an Entity
source§

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

Cast value of a column into the correct type for database storage. It only cast text as enum type if it’s an enum column.
§

fn entity_name(&self) -> SeaRc<dyn Iden>

Get the name of the entity the column belongs to
§

fn as_column_ref(&self) -> (SeaRc<dyn Iden>, SeaRc<dyn Iden>)

get the name of the entity the column belongs to
§

fn eq<V>(&self, v: V) -> SimpleExpr
where V: Into<Value>,

§

fn ne<V>(&self, v: V) -> SimpleExpr
where V: Into<Value>,

§

fn gt<V>(&self, v: V) -> SimpleExpr
where V: Into<Value>,

§

fn gte<V>(&self, v: V) -> SimpleExpr
where V: Into<Value>,

§

fn lt<V>(&self, v: V) -> SimpleExpr
where V: Into<Value>,

§

fn lte<V>(&self, v: V) -> SimpleExpr
where V: Into<Value>,

§

fn between<V>(&self, a: V, b: V) -> SimpleExpr
where V: Into<Value>,

§

fn not_between<V>(&self, a: V, b: V) -> SimpleExpr
where V: Into<Value>,

§

fn like<T>(&self, s: T) -> SimpleExpr
where T: Into<String>,

§

fn not_like<T>(&self, s: T) -> SimpleExpr
where T: Into<String>,

§

fn starts_with<T>(&self, s: T) -> SimpleExpr
where T: Into<String>,

§

fn ends_with<T>(&self, s: T) -> SimpleExpr
where T: Into<String>,

§

fn contains<T>(&self, s: T) -> SimpleExpr
where T: Into<String>,

§

fn max(&self) -> SimpleExpr

See also SeaQuery’s method with same name.
§

fn min(&self) -> SimpleExpr

See also SeaQuery’s method with same name.
§

fn sum(&self) -> SimpleExpr

See also SeaQuery’s method with same name.
§

fn count(&self) -> SimpleExpr

See also SeaQuery’s method with same name.
§

fn is_null(&self) -> SimpleExpr

See also SeaQuery’s method with same name.
§

fn is_not_null(&self) -> SimpleExpr

See also SeaQuery’s method with same name.
§

fn if_null<V>(&self, v: V) -> SimpleExpr
where V: Into<Value>,

Perform an operation if the column is null
§

fn is_in<V, I>(&self, v: I) -> SimpleExpr
where V: Into<Value>, I: IntoIterator<Item = V>,

§

fn is_not_in<V, I>(&self, v: I) -> SimpleExpr
where V: Into<Value>, I: IntoIterator<Item = V>,

§

fn in_subquery(&self, s: SelectStatement) -> SimpleExpr

§

fn not_in_subquery(&self, s: SelectStatement) -> SimpleExpr

§

fn into_expr(self) -> Expr

Construct a [SimpleExpr::Column] wrapped in [Expr].
§

fn into_returning_expr(self, db_backend: DatabaseBackend) -> Expr

Construct a returning [Expr].
§

fn select_enum_as(&self, expr: Expr) -> SimpleExpr

Cast enum column as text; do nothing if self is not an enum.
§

fn save_enum_as(&self, val: Expr) -> SimpleExpr

Cast value of an enum column as enum type; do nothing if self is not an enum. Will also transform Array(Vec<Json>) into Json(Vec<Json>) if the column type is Json.
source§

impl Debug for Column

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromStr for Column

source§

type Err = ColumnFromStrErr

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Iden for Column

source§

fn unquoted(&self, s: &mut dyn Write)

§

fn prepare(&self, s: &mut dyn Write, q: Quote)

§

fn quoted(&self, q: Quote) -> String

§

fn to_string(&self) -> String

source§

impl IdenStatic for Column

source§

fn as_str(&self) -> &str

Method to call to get the static string identity
source§

impl IntoEnumIterator for Column

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
§

impl<I> IdenList for I
where I: IntoIden,

§

type IntoIter = Once<SeaRc<dyn Iden>>

§

fn into_iter(self) -> <I as IdenList>::IntoIter

§

impl<E, C> IdentityOf<E> for C
where E: EntityTrait<Column = C>, C: ColumnTrait,

§

fn identity_of(self) -> Identity

Method to call to perform this check
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoColumnRef for T
where T: 'static + IntoIden,

§

fn into_column_ref(self) -> ColumnRef

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
§

impl<T> IntoIden for T
where T: 'static + Iden,

§

fn into_iden(self) -> SeaRc<dyn Iden>

§

impl<T> IntoIdentity for T
where T: IdenStatic,

§

fn into_identity(self) -> Identity

Method to perform the conversion
§

impl<I> IntoIndexColumn for I
where I: IntoIden,

§

fn into_index_column(self) -> IndexColumn

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<T> IntoResult<T> for T

§

type Err = Infallible

§

fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>

§

impl<C> IntoSimpleExpr for C
where C: ColumnTrait,

§

fn into_simple_expr(self) -> SimpleExpr

Method to perform the conversion
§

impl<T> IntoTableRef for T
where T: 'static + IntoIden,

§

fn into_table_ref(self) -> TableRef

§

impl<I> IntoTypeRef for I
where I: IntoIden,

§

fn into_type_ref(self) -> TypeRef

source§

impl<M> MetricVecRelabelExt for M

source§

fn relabel( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>

source§

fn relabel_n( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, relabel_num: usize, ) -> RelabeledMetricVec<M>

source§

fn relabel_debug_1( self, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>

Equivalent to RelabeledMetricVec::with_metric_level_relabel_n with metric_level set to MetricLevel::Debug and relabel_num set to 1.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

§

impl<T> DevConfig for T
where T: Send + Sync + 'static + Debug,

source§

impl<T> LruValue for T
where T: Send + Sync,

§

impl<T> Value for T
where T: Send + Sync + 'static,