PostgreSQL-specific form of :class:`_functions.array_agg`, ensures return type is :class:`_postgresql.ARRAY` and not the plain :class:`_types.ARRAY`, unless an explicit ``type_`` is passed.
(*arg, **kw)
| 328 | |
| 329 | |
| 330 | def array_agg(*arg, **kw): |
| 331 | """PostgreSQL-specific form of :class:`_functions.array_agg`, ensures |
| 332 | return type is :class:`_postgresql.ARRAY` and not |
| 333 | the plain :class:`_types.ARRAY`, unless an explicit ``type_`` |
| 334 | is passed. |
| 335 | |
| 336 | """ |
| 337 | kw["_default_array_type"] = ARRAY |
| 338 | return functions.func.array_agg(*arg, **kw) |
| 339 | |
| 340 | |
| 341 | class _regconfig_fn(functions.GenericFunction[_T]): |