SQLAlchemy query adding pseudo-column of related data as an array of dicts
The following relates to a web-application backend written in python and using SQLAlchemy to interface to a postgres (v9.5) relational database. Assume we have two tables: items and relations. Each …