Issues

Issue #3132 new

Please add array_agg function (add a series of PG ARRAY functions)

Christian Hofstaedtler
created an issue

PostgreSQL has this nice array_agg function, and it'd be awesome if sqlalchemy would know that it's return type is of ARRAY(type of thing passed in).

BTW, Thanks for making SQLAlchemy!

Comments (4)

  1. Mike Bayer repo owner

    oh you need to pass it through, then this one:

    from sqlalchemy.sql.functions import ReturnTypeFromArgs
    class array_agg(ReturnTypeFromArgs):
        pass
    

    feel free to test the feature there and let me know if _type_from_args() works in the case of ARRAY(something).

  2. Log in to comment