Trait SelectColumns

pub trait SelectColumns {
    // Required methods
    fn select_column<C>(self, col: C) -> Self
       where C: ColumnTrait;
    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§

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

Add a select column

For more detail, please visit QuerySelect::column

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§

§

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