I have a class
class TableA(Base):
__table__ = table_a
__mapper_args__ = {
'primary_key':[table_a.pk,],
}
and want to add a transform as a column that will be seen when querying (I only have read access, so no writing is necessary)
new_col = func.regexp_substr(table_a.original, r'[^-]*').label("new_col")
Is there a simple way of doing it?