MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / array_agg

Function array_agg

lib/sqlalchemy/dialects/postgresql/ext.py:330–338  ·  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

328
329
330def 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
341class _regconfig_fn(functions.GenericFunction[_T]):

Callers 1

Calls 1

array_aggMethod · 0.80

Tested by 1