MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / array_agg

Function array_agg

lib/sqlalchemy/dialects/postgresql/ext.py:337–345  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

335
336
337def 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
348class _regconfig_fn(functions.GenericFunction[_T]):

Callers 1

Calls 1

array_aggMethod · 0.80

Tested by 1