Create an executable project (API and Admin App) from a database with 1 command, customize with rules and Python in your IDE
BSD 3-Clause "New" or "Revised" License
27
stars
3
forks
source link
Postgresql does not generate Array types correctly #29
Open
tylerm007 opened 6 months ago
from sqlalchemy.dialects.postgresql import ARRAY
bigint__ = Column('bigint[]', ARRAY(BigInteger(),as_tuple=True, dimensions=1))
This fixes the error but the Admin UI does not display the array (need to add as_tuple, dimensions)
curl http://localhost:5656/api/STRESSBIGINTARR { "attributes": { "S_CheckSum": "1923218472011834499", "_checksum": "", "bigint__": [ 65535 ], "description": "ARRAY[65535]" }, "id": "11", "links": { "self": "/api/STRESSBIGINTARR/11/" }