pub fn array_agg<'a, V, E>(
expr: E,
) -> SQLExpr<'a, V, Array<E::SQLType>, Null, Agg, E::Sources>Expand description
Collects values into a SQL array (ARRAY_AGG), on PostgreSQL.
Accepts any expression. The result is an array of the argument’s SQL type, nullable, and an aggregate.
§Examples
assert_eq!(array_agg(users.id).sql(), r#"ARRAY_AGG ("users"."id")"#);