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)
| 335 | |
| 336 | |
| 337 | def array_agg(*arg, **kw): |
| 338 | """PostgreSQL-specific form of :class:`_functions.array_agg`, ensures |
| 339 | return type is :class:`_postgresql.ARRAY` and not |
| 340 | the plain :class:`_types.ARRAY`, unless an explicit ``type_`` |
| 341 | is passed. |
| 342 | |
| 343 | """ |
| 344 | kw["_default_array_type"] = ARRAY |
| 345 | return functions.func.array_agg(*arg, **kw) |
| 346 | |
| 347 | |
| 348 | class _regconfig_fn(functions.GenericFunction[_T]): |