Add a group by column ``` use sea_orm::{entity::*, query::*, tests_cfg::cake, DbBackend}; assert_eq!( cake::Entity::find() .select_only() .column(cake::Column::Name) .group_by(cake::Column::Name) .build(DbBackend::Postgres) .to_string(), r#"SELECT "cake"."name" FROM "cake" GROUP BY "cake"."name""# ); assert_eq!( cake::Entity::find() .select_only() .column_as(cake::Column::Id.count(), "count") .c
(mut self, col: C)
| 275 | /// ); |
| 276 | /// ``` |
| 277 | fn group_by<C>(mut self, col: C) -> Self |
| 278 | where |
| 279 | C: IntoSimpleExpr, |
| 280 | { |
| 281 | self.query().add_group_by([col.into_simple_expr()]); |
| 282 | self |
| 283 | } |
| 284 | |
| 285 | /// Add an AND HAVING expression |
| 286 | /// ``` |