Add a select column ``` use sea_orm::{entity::*, query::*, tests_cfg::cake, DbBackend}; assert_eq!( cake::Entity::find() .select_only() .column(cake::Column::Name) .build(DbBackend::Postgres) .to_string(), r#"SELECT "cake"."name" FROM "cake""# ); ``` Enum column will be casted into text (PostgreSQL only) ``` use sea_orm::{entity::*, query::*, tests_cfg::lunch_set, DbBackend}; assert_eq!( lunch
(mut self, col: C)
| 64 | /// ); |
| 65 | /// ``` |
| 66 | fn column<C>(mut self, col: C) -> Self |
| 67 | where |
| 68 | C: ColumnTrait, |
| 69 | { |
| 70 | self.query().expr(col.select_as(col.into_expr())); |
| 71 | self |
| 72 | } |
| 73 | |
| 74 | /// Add a select column with alias |
| 75 | /// ``` |