sea_orm::query

Trait SelectColumns

Source
pub trait SelectColumns {
    // Required methods
    fn select_column<C: ColumnTrait>(self, col: C) -> Self;
    fn select_column_as<C, I>(self, col: C, alias: I) -> Self
       where C: IntoSimpleExpr,
             I: IntoIdentity;
}
Expand description

Select specific column for partial model queries

Required Methods§

Source

fn select_column<C: ColumnTrait>(self, col: C) -> Self

Add a select column

For more detail, please visit QuerySelect::column

Source

fn select_column_as<C, I>(self, col: C, alias: I) -> Self

Add a select column with alias

For more detail, please visit QuerySelect::column_as

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S> SelectColumns for S
where S: QuerySelect,