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§
Sourcefn select_column<C: ColumnTrait>(self, col: C) -> Self
fn select_column<C: ColumnTrait>(self, col: C) -> Self
Add a select column
For more detail, please visit QuerySelect::column
Sourcefn select_column_as<C, I>(self, col: C, alias: I) -> Selfwhere
C: IntoSimpleExpr,
I: IntoIdentity,
fn select_column_as<C, I>(self, col: C, alias: I) -> Selfwhere
C: IntoSimpleExpr,
I: IntoIdentity,
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.